mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
b3a8254758
By: md_5 <git@md-5.net>
11 lines
719 B
Diff
11 lines
719 B
Diff
--- a/net/minecraft/network/protocol/game/PacketPlayOutMultiBlockChange.java
|
|
+++ b/net/minecraft/network/protocol/game/PacketPlayOutMultiBlockChange.java
|
|
@@ -32,7 +32,7 @@
|
|
short short0 = (Short) shortiterator.next();
|
|
|
|
this.positions[j] = short0;
|
|
- this.states[j] = chunksection.getType(SectionPosition.a(short0), SectionPosition.b(short0), SectionPosition.c(short0));
|
|
+ this.states[j] = (chunksection != null) ? chunksection.getType(SectionPosition.a(short0), SectionPosition.b(short0), SectionPosition.c(short0)) : net.minecraft.world.level.block.Blocks.AIR.getBlockData(); // CraftBukkit - SPIGOT-6076, Mojang bug when empty chunk section notified
|
|
}
|
|
|
|
}
|