forked from MagicBane/Server
Building Management compiled to a single method check
This commit is contained in:
@@ -53,7 +53,7 @@ public class TransferGoldToFromBuildingMsgHandler extends AbstractClientMsgHandl
|
||||
|
||||
if (msg.getDirection() == 2) {
|
||||
|
||||
if (!ManageCityAssetMsgHandler.playerCanManageNotFriends(player, building))
|
||||
if (!BuildingManager.playerCanManage(player, building))
|
||||
return true;
|
||||
if (building.setReserve(msg.getUnknown01(), player)) {
|
||||
dispatch = Dispatch.borrow(player, msg);
|
||||
|
||||
Reference in New Issue
Block a user