3
0

修复代码错误

This commit is contained in:
聪聪 2017-06-27 14:26:59 +08:00
parent 6d76ac6545
commit 256f099706

View File

@ -169,8 +169,8 @@
+ List<net.minecraftforge.common.util.BlockSnapshot> blockSnapshots = (List<net.minecraftforge.common.util.BlockSnapshot>) world.capturedBlockSnapshots + List<net.minecraftforge.common.util.BlockSnapshot> blockSnapshots = (List<net.minecraftforge.common.util.BlockSnapshot>) world.capturedBlockSnapshots
+ .clone(); + .clone();
+ world.capturedBlockSnapshots.clear(); + world.capturedBlockSnapshots.clear();
+ List<net.minecraftforge.common.util.EntitySnapshot> tDropItemSnapshots=(List<net.minecraftforge.common.util.EntitySnapshot>)world.capturedItems.clone(); + List<net.minecraftforge.common.util.EntitySnapshot> tDropItemSnapshots=(List<net.minecraftforge.common.util.EntitySnapshot>)world.capturedEntityItemSnapshots.clone();
+ world.capturedItems.clear(); + world.capturedEntityItemSnapshots.clear();
+ +
+ // make sure to set pre-placement item data for event + // make sure to set pre-placement item data for event
+ itemstack.setItemDamage(meta); + itemstack.setItemDamage(meta);