소스 검색

bug: Fixed item types with noDrop dropping

tags/v0.12.0.3^2
Shaun 1 년 전
부모
커밋
188f298af6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/server/items/generators/types.js

+ 2
- 2
src/server/items/generators/types.js 파일 보기

@@ -10,7 +10,7 @@ module.exports = {
const types = configTypes.types[item.slot];
const typeArray = Object
.entries(types)
.filter(t => t.noDrop !== true);
.filter(t => t[1].noDrop !== true);

const materials = Object.values(types)
.map(t => {
@@ -26,7 +26,7 @@ module.exports = {
.forEach(t => {
const [ typeName, typeConfig ] = t;

if (typeConfig.material === material)
if (typeConfig.material === material && typeConfig.noDrop !== true)
possibleTypes[typeName] = typeConfig;
});



불러오는 중...
취소
저장