Added Trade Station warning for full inventory

#170
This commit is contained in:
mezz committed 2014-09-09 14:43:15 -07:00
1 parent 9d8e572ac8
commit 07afdf63b1
3 files changed
+27 -6

No files matched your search

@@ -137,6 +137,13 @@ public class MachineTrader extends TileBase implements ISpecialInventory, ISided
return;
}
if (inventory instanceof TradeStation) {
if (!((TradeStation)inventory).canReceivePayment()) {
setErrorState(EnumErrorCode.NOSPACE);
return;
}
}
setErrorState(EnumErrorCode.OK);
}