mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
*Tweaked synchronized blocks
This commit is contained in:
@@ -944,9 +944,8 @@ public class MagicStack extends MyObservable {
|
|||||||
synchronized (this.stack) {
|
synchronized (this.stack) {
|
||||||
this.getStack().remove(si);
|
this.getStack().remove(si);
|
||||||
}
|
}
|
||||||
synchronized (this.frozenStack) {
|
|
||||||
this.getFrozenStack().remove(si);
|
this.getFrozenStack().remove(si);
|
||||||
}
|
|
||||||
this.updateObservers();
|
this.updateObservers();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1110,7 +1109,9 @@ public class MagicStack extends MyObservable {
|
|||||||
* @return the stack
|
* @return the stack
|
||||||
*/
|
*/
|
||||||
public final Stack<SpellAbilityStackInstance> getStack() {
|
public final Stack<SpellAbilityStackInstance> getStack() {
|
||||||
return this.stack;
|
synchronized(this.stack) {
|
||||||
|
return this.stack;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user