Remove duplicate post of ChunkEvent.Load. (#6697)
This commit is contained in:
parent
999b5df933
commit
932e7c84b3
1 changed files with 3 additions and 11 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue