Fix animated torches not causing block updates in some situations, closes #2510

This commit is contained in:
Vincent Lee committed 2018-01-11 15:30:11 -06:00
1 parent 44738451ef
commit 446bd04b3d
2 files changed
+29 -9

No files matched your search

@@ -150,6 +150,15 @@ public class BlockAnimatedTorch extends BlockMod implements IWandable, IManaTrig
return BlockFaceShape.UNDEFINED;
}
@Override
public void onBlockDestroyedByPlayer(World world, BlockPos pos, IBlockState state) {
// TE is already gone so best we can do is just notify everyone
for(EnumFacing side : EnumFacing.VALUES) {
world.notifyNeighborsOfStateChange(pos.offset(side), this, false);
}
super.onBlockDestroyedByPlayer(world, pos, state);
}
@Override
public LexiconEntry getEntry(World world, BlockPos pos, EntityPlayer player, ItemStack lexicon) {
return LexiconData.animatedTorch;