I can't quite figure out why I can't walk into a certain region. For an example, if I walk towards edgeville from the loadstone the player stops in his tracks and wont go past a certain line. The server spits out this error message 
here is the code and the line highlighted is causing the issue, i just don't know why.
Code:
public void spawnObject(WorldObject object, int plane, int localX, int localY, boolean original) {
if (objects == null)
objects = new WorldObject[4][64][64][4];
int slot = OBJECT_SLOTS[object.getType()];
if (original) {
objects[plane][localX][localY][slot] = object;
clip(object, localX, localY);
} else {
WorldObject spawned = getSpawnedObjectWithSlot(plane, localX, localY, slot);
// found non original object on this slot. removing it since we
// replacing with a new non original
if (spawned != null) {
spawnedObjects.remove(spawned);
// unclips non orignal old object which had been cliped so can
// clip the new non original
unclip(spawned, localX, localY);
}
WorldObject removed = getRemovedObjectWithSlot(plane, localX, localY, slot);
// there was a original object removed. lets readd it
if (removed != null) {
object = removed;
removedOriginalObjects.remove(object);
// adding non original object to this place
} else if (objects[plane][localX][localY][slot] != object) {
spawnedObjects.add(object);
// unclips orignal old object which had been cliped so can clip
// the new non original
if (objects[plane][localX][localY][slot] != null)
unclip(objects[plane][localX][localY][slot], localX, localY);
} else if(spawned == null) {
if (Settings.DEBUG)
Logger.log(this, "Requested object to spawn is already spawned.(Shouldnt happen)");
return;
}
// clips spawned object(either original or non original)
clip(object, localX, localY);
for (Player p2 : World.getPlayers()) {
if (p2 == null || !p2.hasStarted() || p2.hasFinished() || !p2.getMapRegionsIds().contains(regionId))
continue;
p2.getPackets().sendSpawnedObject(object);
}
}
}
here is the World.java version.
Code:
public static final void spawnObject(WorldObject object) {
getRegion(object.getRegionId()).spawnObject(object, object.getPlane(), object.getXInRegion(), object.getYInRegion(), false);
}