mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 04:09:51 +00:00
Fix NPE with BlockSnapshots that caused items with TileEntities to be used up in creative mode.
This commit is contained in:
1 parent
2a02804379
commit
7cc7056c57
1 file changed
+1
-1
@@ -154,7 +154,7 @@
|
||||
+ // Split off from original setBlockState(BlockPos, IBlockState Block p_147465_4_, int) method in order to directly send client and physic updates
|
||||
+ public void markAndNotifyBlock(BlockPos pos, Chunk chunk, IBlockState old, IBlockState new_, int flags)
|
||||
+ {
|
||||
+ if ((flags & 2) != 0 && (!this.field_72995_K || (flags & 4) == 0) && chunk.func_150802_k())
|
||||
+ if ((flags & 2) != 0 && (!this.field_72995_K || (flags & 4) == 0) && (chunk == null || chunk.func_150802_k()))
|
||||
+ {
|
||||
+ this.func_175689_h(pos);
|
||||
+ }
|
||||
|
||||
Reference in new issue
Block a user