forked from MagicBane/Server
utilize min and max Y values for meshes
This commit is contained in:
@@ -47,7 +47,7 @@ public class MoveToPointHandler extends AbstractClientMsgHandler {
|
||||
HashSet<AbstractWorldObject> awoList = WorldGrid.getObjectsInRangePartial(pc.loc, movementDistance, MBServerStatics.MASK_BUILDING);
|
||||
for(AbstractWorldObject awo : awoList){
|
||||
Building building = (Building)awo;
|
||||
if(CollisionManager.CollisionDetected(building, travelLine,pc.getCharacterHeight())){
|
||||
if(CollisionManager.CollisionDetected(building, travelLine,pc.getCharacterHeight(),pc.loc.y)){
|
||||
ChatManager.chatSystemInfo(pc, "Collision Detected");
|
||||
//msg.setEndCoord();
|
||||
MovementManager.movement(msg, pc);
|
||||
|
||||
Reference in New Issue
Block a user