2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/network/protocol/game/PacketPlayOutMultiBlockChange.java
|
|
|
|
+++ b/net/minecraft/network/protocol/game/PacketPlayOutMultiBlockChange.java
|
2021-06-11 07:00:00 +02:00
|
|
|
@@ -32,7 +32,7 @@
|
2020-08-16 10:07:42 +02:00
|
|
|
short short0 = (Short) shortiterator.next();
|
|
|
|
|
2021-06-11 07:00:00 +02:00
|
|
|
this.positions[j] = short0;
|
2021-11-21 23:00:00 +01:00
|
|
|
- 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
|
2020-08-16 10:07:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|