forked from MagicBane/Server
utilize min and max Y values for meshes
This commit is contained in:
@@ -50,7 +50,7 @@ public class RegionCmd extends AbstractDevCmd {
|
||||
if(building != null){
|
||||
for(Mesh mesh : building.buildingMeshes){
|
||||
if(mesh.boundsRect.contains(new Point2D.Float(((AbstractCharacter) target).loc.x,((AbstractCharacter) target).loc.z))){
|
||||
if(((AbstractCharacter) target).loc.y < mesh.meshHeight) {
|
||||
if(((AbstractCharacter) target).loc.y < mesh.maxY) {
|
||||
this.throwbackInfo(pc, "Inside Mesh Bounds");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user