Building Management compiled to a single method check

This commit is contained in:
2024-06-26 19:27:32 -05:00
parent 381139af35
commit 80ccfff635
6 changed files with 55 additions and 79 deletions
@@ -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);