forked from MagicBane/Server
Method moved to manager.
This commit is contained in:
@@ -2,7 +2,6 @@ package engine.net.client.handlers;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.Enum.*;
|
||||
import engine.InterestManagement.HeightMap;
|
||||
import engine.InterestManagement.InterestManager;
|
||||
import engine.InterestManagement.RealmMap;
|
||||
import engine.InterestManagement.WorldGrid;
|
||||
@@ -112,7 +111,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
|
||||
|
||||
// Cannot place a tree underwater
|
||||
|
||||
if (HeightMap.isLocUnderwater(placementInfo.getLoc())) {
|
||||
if (ZoneManager.isLocUnderwater(placementInfo.getLoc())) {
|
||||
PlaceAssetMsg.sendPlaceAssetError(origin, 6, ""); // Cannot place underwater
|
||||
return false;
|
||||
}
|
||||
@@ -178,7 +177,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
|
||||
|
||||
// Cannot place a building underwater
|
||||
|
||||
if (HeightMap.isLocUnderwater(placementInfo.getLoc())) {
|
||||
if (ZoneManager.isLocUnderwater(placementInfo.getLoc())) {
|
||||
PlaceAssetMsg.sendPlaceAssetError(origin, 6, ""); // Cannot place underwater
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user