修复代码错误
This commit is contained in:
parent
6d76ac6545
commit
256f099706
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user