mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 11:06:29 +01:00
Fix "block update packet" not being sent to the correct world. Fixes BUKKIT-2023
This commit is contained in:
parent
342f9c3bd3
commit
bfc5189818
@ -782,7 +782,8 @@ public class WorldServer extends World implements org.bukkit.BlockChangeDelegate
|
||||
NoteBlockData noteblockdata = (NoteBlockData) iterator.next();
|
||||
|
||||
if (this.a(noteblockdata)) {
|
||||
this.server.getServerConfigurationManager().sendPacketNearby((double) noteblockdata.a(), (double) noteblockdata.b(), (double) noteblockdata.c(), 64.0D, this.worldProvider.dimension, new Packet54PlayNoteBlock(noteblockdata.a(), noteblockdata.b(), noteblockdata.c(), noteblockdata.f(), noteblockdata.d(), noteblockdata.e()));
|
||||
// CraftBukkit - this.worldProvider.dimension -> this.dimension
|
||||
this.server.getServerConfigurationManager().sendPacketNearby((double) noteblockdata.a(), (double) noteblockdata.b(), (double) noteblockdata.c(), 64.0D, this.dimension, new Packet54PlayNoteBlock(noteblockdata.a(), noteblockdata.b(), noteblockdata.c(), noteblockdata.f(), noteblockdata.d(), noteblockdata.e()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user