mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Code cleanup
This commit is contained in:
@@ -2941,14 +2941,13 @@ public class Player extends GameEntity implements Comparable<Player> {
|
||||
controllerCreator = ctrlr;
|
||||
controller = ctrlr;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Run a procedure using a different controller
|
||||
* @param proc
|
||||
* @param tempController
|
||||
*/
|
||||
public void runWithController(Runnable proc, PlayerController tempController) {
|
||||
|
||||
PlayerController oldController = controller;
|
||||
controller = tempController;
|
||||
try {
|
||||
|
||||
@@ -99,7 +99,7 @@ public class Zone implements java.io.Serializable, Iterable<Card> {
|
||||
public void reposition(final Card c, int newIndex) {
|
||||
int oldIndex = this.cardList.indexOf(c);
|
||||
if (oldIndex == -1 || oldIndex == newIndex) { return; }
|
||||
|
||||
|
||||
this.cardList.remove(oldIndex);
|
||||
this.cardList.add(newIndex, c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user