diff options
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r-- | src/main/java/net/minecraft/server/TileEntityCommand.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/TileEntityCommand.java b/src/main/java/net/minecraft/server/TileEntityCommand.java index 357c5836..4ff401b0 100644 --- a/src/main/java/net/minecraft/server/TileEntityCommand.java +++ b/src/main/java/net/minecraft/server/TileEntityCommand.java @@ -83,6 +83,9 @@ public class TileEntityCommand extends TileEntity implements ICommandListener { EntityPlayer[] players = PlayerSelector.getPlayers(this, args[pos]); if (players != null) { for (EntityPlayer player : players) { + if (player.world != this.world) { + continue; + } String[] command = args.clone(); command[pos] = player.getLocalizedName(); commands.add(command); |