summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorfeildmaster <admin@feildmaster.com>2012-08-09 04:28:04 -0500
committerfeildmaster <admin@feildmaster.com>2012-08-12 14:11:34 -0500
commitbfc5189818c74b37cc3e67baead6545c80aeb960 (patch)
tree7c3b264a69fe6e6a158fefc91e4842db89cf980b /src/main/java
parent342f9c3bd304f85b3603fbff805d10ab2bb6593d (diff)
downloadcraftbukkit-bfc5189818c74b37cc3e67baead6545c80aeb960.tar
craftbukkit-bfc5189818c74b37cc3e67baead6545c80aeb960.tar.gz
craftbukkit-bfc5189818c74b37cc3e67baead6545c80aeb960.tar.lz
craftbukkit-bfc5189818c74b37cc3e67baead6545c80aeb960.tar.xz
craftbukkit-bfc5189818c74b37cc3e67baead6545c80aeb960.zip
Fix "block update packet" not being sent to the correct world. Fixes BUKKIT-2023
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/net/minecraft/server/WorldServer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java
index dd796811..bb69a2db 100644
--- a/src/main/java/net/minecraft/server/WorldServer.java
+++ b/src/main/java/net/minecraft/server/WorldServer.java
@@ -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()));
}
}