Remove EnumAddressee.INVALID

This commit is contained in:
mezz committed 2014-09-13 19:30:21 -07:00
1 parent dff81eb85c
commit f13bacfed5
7 files changed
+19 -15

No files matched your search

@@ -64,8 +64,8 @@ public class TradeStation extends WorldSavedData implements ITradeStation, IInve
// / CONSTRUCTORS
public TradeStation(GameProfile owner, IMailAddress address) {
super(SAVE_NAME + address);
if (address.isPlayer()) {
throw new IllegalArgumentException("TradeStation address must not be a player");
if (!address.isTrader()) {
throw new IllegalArgumentException("TradeStation address must be a trader");
}
this.owner = owner;
this.address = address;