mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 13:09:42 +00:00
More blockstate guards in TE and blockstate conversions
This commit is contained in:
1 parent
1c14dcf8ff
commit
4345bd9728
14 files changed
+56
-27
No files matched your search
@@ -23,8 +23,6 @@ public class TileMod extends TileEntity {
|
||||
|
||||
@Override
|
||||
public boolean shouldRefresh(World world, BlockPos pos, IBlockState oldState, IBlockState newState) {
|
||||
// todo: review all subclasses. this could potentially leave stragglers hanging.
|
||||
// todo: example: open crate and crafty crate should refresh when variants change
|
||||
return oldState.getBlock() != newState.getBlock();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user