fixed desync issue for enchant schema
@@ -117,12 +117,14 @@ public class BookEnchantSchema implements UpgradeSchema {
}
}
- if (consumeMaterials && player instanceof EntityPlayerMP) {
- // todo: add proper criteria
-
+ if (consumeMaterials) {
materials[0].shrink(1);
+
+ if (player instanceof EntityPlayerMP) {
+ // todo: add proper criteria
CriteriaTriggers.CONSUME_ITEM.trigger((EntityPlayerMP) player, upgradedStack);
}
+ }
return upgradedStack;
}
