forked from MagicBane/Server
building and region lookup completed
This commit is contained in:
@@ -991,7 +991,7 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
|
||||
if(building != null){
|
||||
//look for region in the building we are in
|
||||
for(Regions regionCycle : building.getBounds().getRegions())
|
||||
if(regionCycle.isPointInPolygon(value))
|
||||
if(regionCycle.isPointInPolygon(value) && Math.abs(regionCycle.highLerp.y - value.y) < 10)
|
||||
region = regionCycle;
|
||||
}
|
||||
float regionHeightOffset = 0;
|
||||
|
||||
Reference in New Issue
Block a user