Prevent abilities being put on the Undo stack if not activated by Gui player

This commit is contained in:
drdev
2014-08-30 21:11:16 +00:00
parent 3227bd6963
commit 16c140c7ad
3 changed files with 12 additions and 4 deletions

View File

@@ -1165,4 +1165,7 @@ public class PlayerControllerHuman extends PlayerController {
return chooseSingleEntityForEffect(fetchList, sa, selectPrompt, b, decider);
}
public boolean isGuiPlayer() {
return lobbyPlayer == GuiBase.getInterface().getGuiPlayer();
}
}