From b0e43c809739d3521d7cd5e54bb5259886c50fb7 Mon Sep 17 00:00:00 2001 From: feildmaster Date: Mon, 28 Jan 2013 17:01:08 -0600 Subject: [PATCH] Make command blocks only select players on its world. Fixes BUKKIT-3515 --- src/main/java/net/minecraft/server/TileEntityCommand.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/minecraft/server/TileEntityCommand.java b/src/main/java/net/minecraft/server/TileEntityCommand.java index 357c583676..4ff401b057 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);