forked from External/mage
Cleanup now that server is no longer sending MageObject in ClientMessage (#10986)
This commit is contained in:
parent
5062c84098
commit
5cedc3258a
1 changed files with 0 additions and 7 deletions
|
|
@ -4,7 +4,6 @@ import mage.abilities.MageSingleton;
|
|||
import mage.abilities.Mode;
|
||||
import mage.constants.EffectType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.players.Player;
|
||||
import mage.target.targetpointer.FirstTargetPointer;
|
||||
import mage.target.targetpointer.TargetPointer;
|
||||
|
||||
|
|
@ -105,12 +104,6 @@ public abstract class EffectImpl implements Effect {
|
|||
values = new HashMap<>();
|
||||
}
|
||||
}
|
||||
if (value instanceof Player) {
|
||||
// If Player are set as value, there might be PlayerImpl serialized in ClientMessage's GameView.
|
||||
// That does cause the message's data to not be unzippable, since the PlayerImpl class are not
|
||||
// client-side.
|
||||
throw new IllegalArgumentException("Players should not be set as value, set the UUID instead.");
|
||||
}
|
||||
values.put(key, value);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue