Colored floor tile
This commit is contained in:
@@ -311,6 +311,10 @@ public class Tile implements Position, QuadTreeObject, Displayable{
|
||||
if(!world.isGenerating() && prev != type){
|
||||
Events.fire(floorChange.set(this, prev, type));
|
||||
}
|
||||
|
||||
if(this.floor != prev){
|
||||
this.floor.floorChanged(this);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isEditorTile(){
|
||||
@@ -564,6 +568,10 @@ public class Tile implements Position, QuadTreeObject, Displayable{
|
||||
null : null;
|
||||
}
|
||||
|
||||
public boolean shouldSaveData(){
|
||||
return floor.saveData || overlay.saveData || block.saveData;
|
||||
}
|
||||
|
||||
public int staticDarkness(){
|
||||
return block.solid && block.fillsTile && !block.synthetic() ? data : 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user