mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fixed IModelData not being cleared when tile entity is removed (#6115)
This commit is contained in:
1 parent
01d14004a9
commit
5978670897
2 files changed
+8
-3
No files matched your search
@@ -84,10 +84,14 @@ public class ModelDataManager
|
||||
for (BlockPos pos : needUpdate)
|
||||
{
|
||||
TileEntity toUpdate = world.getTileEntity(pos);
|
||||
if (toUpdate != null)
|
||||
if (toUpdate != null && !toUpdate.isRemoved())
|
||||
{
|
||||
data.put(pos, toUpdate.getModelData());
|
||||
}
|
||||
else
|
||||
{
|
||||
data.remove(pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user