mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 02:07:37 +01:00
43702a9e10
By: md_5 <git@md-5.net>
12 lines
826 B
Diff
12 lines
826 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.getBlockState(SectionPosition.sectionRelativeX(short0), SectionPosition.sectionRelativeY(short0), SectionPosition.sectionRelativeZ(short0));
|
|
+ this.states[j] = (chunksection != null) ? chunksection.getBlockState(SectionPosition.sectionRelativeX(short0), SectionPosition.sectionRelativeY(short0), SectionPosition.sectionRelativeZ(short0)) : net.minecraft.world.level.block.Blocks.AIR.defaultBlockState(); // CraftBukkit - SPIGOT-6076, Mojang bug when empty chunk section notified
|
|
}
|
|
|
|
}
|