Hi guys,
I cant figure it out right now, i want to delete the doors in the image below.

[Only registered and activated users can see links. ]
If i change the:
Code:
if(World.restrictedTiles != null){
for(WorldTile restrictedTile : World.restrictedTiles){
if(restrictedTile != null){
int restX = restrictedTile.getX(), restY = restrictedTile.getY();
int restPlane = restrictedTile.getPlane();
if(object.getX() == restX && object.getY() == restY && object.getPlane() == restPlane){
World.spawnObject(new WorldObject(-1, 10, 2, object.getX(), object.getY(), object.getPlane()), false);
return;
}
}
}
}
to:
Code:
if(World.restrictedTiles != null){
for(WorldTile restrictedTile : World.restrictedTiles){
if(restrictedTile != null){
int restX = restrictedTile.getX(), restY = restrictedTile.getY();
int restPlane = restrictedTile.getPlane();
if(object.getX() == restX && object.getY() == restY && object.getPlane() == restPlane){
World.spawnObject(new WorldObject(-1, 0, 2, object.getX(), object.getY(), object.getPlane()), false);
return;
}
}
}
}
but this will make my other object deletes on my server to be active again, how to i make it work so type 10 and type 0 objects will be deleted?
ty!