Remove unnecessary tile entity from upper thorn blocks, and reminder to do the same for statue blocks

This commit is contained in:
Electroblob77
2020-06-19 16:37:03 +01:00
parent a87eca3bd8
commit c842fef2f7
4 changed files with 18 additions and 19 deletions
@@ -9,8 +9,8 @@ public class TileEntityPlayerSaveTimed extends TileEntityPlayerSave implements I
public int timer = 0;
public int maxTimer;
public TileEntityPlayerSaveTimed(int maxTimer){
this.maxTimer = maxTimer;
public TileEntityPlayerSaveTimed(){
this.maxTimer = 600;
}
@Override
@@ -24,6 +24,7 @@ public class TileEntityPlayerSaveTimed extends TileEntityPlayerSave implements I
if(timer % 2 == 0 && world.getBlockState(pos).getValue(BlockThorns.AGE) < BlockThorns.GROWTH_STAGES - 1){
world.setBlockState(pos, world.getBlockState(pos).withProperty(BlockThorns.AGE, world.getBlockState(pos).getValue(BlockThorns.AGE) + 1), 2);
world.setBlockState(pos.up(), world.getBlockState(pos.up()).withProperty(BlockThorns.AGE, world.getBlockState(pos.up()).getValue(BlockThorns.AGE) + 1), 2);
}
}
@@ -46,7 +46,7 @@ public class TileEntityStatue extends TileEntity implements ITickable {
/**
* The position within the petrified creature this particular tileentity holds. 1 is at the bottom.
*/
public int position = 1;
public int position = 1; // TODO: Remove this, there is no need for more than 1 TE per statue
public void setCreatureAndPart(EntityLiving entity, int position, int parts){
this.creature = entity;