From 7cc7056c5749944925749965a6626ba4e7d461d4 Mon Sep 17 00:00:00 2001 From: Lex Manos Date: Sun, 30 Nov 2014 23:54:17 -0800 Subject: [PATCH] Fix NPE with BlockSnapshots that caused items with TileEntities to be used up in creative mode. --- patches/minecraft/net/minecraft/world/World.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/world/World.java.patch b/patches/minecraft/net/minecraft/world/World.java.patch index 11a8ec5edb..78aa3a74ca 100644 --- a/patches/minecraft/net/minecraft/world/World.java.patch +++ b/patches/minecraft/net/minecraft/world/World.java.patch @@ -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); + }