mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:25:03 +01:00
9da047989c
By: md_5 <git@md-5.net>
11 lines
701 B
Diff
11 lines
701 B
Diff
--- a/net/minecraft/network/protocol/game/PacketPlayOutMultiBlockChange.java
|
|
+++ b/net/minecraft/network/protocol/game/PacketPlayOutMultiBlockChange.java
|
|
@@ -31,7 +31,7 @@
|
|
short short0 = (Short) shortiterator.next();
|
|
|
|
this.b[i] = short0;
|
|
- this.c[i] = chunksection.getType(SectionPosition.a(short0), SectionPosition.b(short0), SectionPosition.c(short0));
|
|
+ this.c[i] = (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
|
|
}
|
|
|
|
}
|