From 932e7c84b319962fa24aba47f3d41e4b6d721673 Mon Sep 17 00:00:00 2001 From: covers1624 Date: Sat, 16 May 2020 00:15:37 +0930 Subject: [PATCH] Remove duplicate post of ChunkEvent.Load. (#6697) --- .../minecraft/world/server/ChunkManager.java.patch | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/patches/minecraft/net/minecraft/world/server/ChunkManager.java.patch b/patches/minecraft/net/minecraft/world/server/ChunkManager.java.patch index 225a05111..e733b34c5 100644 --- a/patches/minecraft/net/minecraft/world/server/ChunkManager.java.patch +++ b/patches/minecraft/net/minecraft/world/server/ChunkManager.java.patch @@ -16,15 +16,7 @@ } this.func_219229_a(p_219185_5_); -@@ -482,6 +484,7 @@ - if (flag) { - IChunk ichunk = ChunkSerializer.func_222656_a(this.field_219255_i, this.field_219269_w, this.field_219260_n, p_223172_1_, compoundnbt); - ichunk.func_177432_b(this.field_219255_i.func_82737_E()); -+ net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.world.ChunkEvent.Load(ichunk)); - return Either.left(ichunk); - } - -@@ -594,6 +597,7 @@ +@@ -594,6 +596,7 @@ if (list != null) { list.forEach(chunk::func_76622_b); } @@ -32,7 +24,7 @@ } return chunk; -@@ -679,6 +683,7 @@ +@@ -679,6 +682,7 @@ this.field_219255_i.func_217381_Z().func_230035_c_("chunkSave"); CompoundNBT compoundnbt1 = ChunkSerializer.func_222645_a(this.field_219255_i, p_219229_1_); @@ -40,7 +32,7 @@ this.func_219100_a(chunkpos, compoundnbt1); return true; } catch (Exception exception) { -@@ -711,6 +716,7 @@ +@@ -711,6 +715,7 @@ protected void func_219199_a(ServerPlayerEntity p_219199_1_, ChunkPos p_219199_2_, IPacket[] p_219199_3_, boolean p_219199_4_, boolean p_219199_5_) { if (p_219199_1_.field_70170_p == this.field_219255_i) {