mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
Derp
This commit is contained in:
1 parent
a929156626
commit
298d46399f
2 files changed
+9
-9
No files matched your search
@@ -29,15 +29,15 @@ public class TileOpenCrate extends TileSimpleInventory {
|
||||
public boolean shouldRefresh(World world, BlockPos pos, IBlockState oldState, IBlockState newState) {
|
||||
if(oldState.getBlock() != newState.getBlock())
|
||||
return true;
|
||||
if(oldState.getBlock() != ModBlocks.pool || newState.getBlock() != ModBlocks.pool)
|
||||
return true;
|
||||
return oldState.getValue(BotaniaStateProps.CRATE_VARIANT) != newState.getValue(BotaniaStateProps.CRATE_VARIANT);
|
||||
}
|
||||
if(oldState.getBlock() != ModBlocks.openCrate || newState.getBlock() != ModBlocks.openCrate)
|
||||
return true;
|
||||
return oldState.getValue(BotaniaStateProps.CRATE_VARIANT) != newState.getValue(BotaniaStateProps.CRATE_VARIANT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSizeInventory() {
|
||||
return 1;
|
||||
}
|
||||
@Override
|
||||
public int getSizeInventory() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
|
||||
@@ -145,7 +145,7 @@ public class TileSpreader extends TileSimpleInventory implements IManaCollector,
|
||||
public boolean shouldRefresh(World world, BlockPos pos, IBlockState oldState, IBlockState newState) {
|
||||
if(oldState.getBlock() != newState.getBlock())
|
||||
return true;
|
||||
if(oldState.getBlock() != ModBlocks.pool || newState.getBlock() != ModBlocks.pool)
|
||||
if(oldState.getBlock() != ModBlocks.spreader || newState.getBlock() != ModBlocks.spreader)
|
||||
return true;
|
||||
return oldState.getValue(BotaniaStateProps.SPREADER_VARIANT) != newState.getValue(BotaniaStateProps.SPREADER_VARIANT);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user