From 4908f58b00e6635a0c5cf35a42758a0a88c8e5c9 Mon Sep 17 00:00:00 2001 From: James Mitchell Date: Sat, 17 Dec 2016 13:26:07 -0800 Subject: [PATCH] Fix setting the world in TileEntity.addTileEntity (#2863) (#3517) --- 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 b87c00d43..553beaa1a 100644 --- a/patches/minecraft/net/minecraft/world/World.java.patch +++ b/patches/minecraft/net/minecraft/world/World.java.patch @@ -431,7 +431,7 @@ public boolean func_175700_a(TileEntity p_175700_1_) { - boolean flag = this.field_147482_g.add(p_175700_1_); -+ if (p_175700_1_.func_145831_w() != null) // Forge - set the world early as vanilla doesn't set it until next tick ++ if (p_175700_1_.func_145831_w() != this) // Forge - set the world early as vanilla doesn't set it until next tick + p_175700_1_.func_145834_a(this); + List dest = field_147481_N ? field_147484_a : field_147482_g;