Browse Source

bug: Fixed item types with noDrop dropping

tags/v0.12.0.3^2
Shaun 1 year ago
parent
commit
188f298af6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/server/items/generators/types.js

+ 2
- 2
src/server/items/generators/types.js View File

@@ -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;
});



Loading…
Cancel
Save