|
|
@ -2,7 +2,6 @@ package engine.net.client.handlers; |
|
|
|
|
|
|
|
|
|
|
|
import engine.Enum; |
|
|
|
import engine.Enum; |
|
|
|
import engine.Enum.*; |
|
|
|
import engine.Enum.*; |
|
|
|
import engine.InterestManagement.HeightMap; |
|
|
|
|
|
|
|
import engine.InterestManagement.InterestManager; |
|
|
|
import engine.InterestManagement.InterestManager; |
|
|
|
import engine.InterestManagement.RealmMap; |
|
|
|
import engine.InterestManagement.RealmMap; |
|
|
|
import engine.InterestManagement.WorldGrid; |
|
|
|
import engine.InterestManagement.WorldGrid; |
|
|
@ -112,7 +111,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { |
|
|
|
|
|
|
|
|
|
|
|
// Cannot place a tree underwater
|
|
|
|
// Cannot place a tree underwater
|
|
|
|
|
|
|
|
|
|
|
|
if (HeightMap.isLocUnderwater(placementInfo.getLoc())) { |
|
|
|
if (ZoneManager.isLocUnderwater(placementInfo.getLoc())) { |
|
|
|
PlaceAssetMsg.sendPlaceAssetError(origin, 6, ""); // Cannot place underwater
|
|
|
|
PlaceAssetMsg.sendPlaceAssetError(origin, 6, ""); // Cannot place underwater
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
@ -178,7 +177,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { |
|
|
|
|
|
|
|
|
|
|
|
// Cannot place a building underwater
|
|
|
|
// Cannot place a building underwater
|
|
|
|
|
|
|
|
|
|
|
|
if (HeightMap.isLocUnderwater(placementInfo.getLoc())) { |
|
|
|
if (ZoneManager.isLocUnderwater(placementInfo.getLoc())) { |
|
|
|
PlaceAssetMsg.sendPlaceAssetError(origin, 6, ""); // Cannot place underwater
|
|
|
|
PlaceAssetMsg.sendPlaceAssetError(origin, 6, ""); // Cannot place underwater
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|