Use null for the Item to render to not leak the world

This commit is contained in:
Pelotrio authored and Jason Mitchell committed 2023-11-10 18:34:39 -08:00
1 parent 2470e81f0e
commit 287c4498d2
1 file changed
+1 -1
@@ -114,7 +114,7 @@ public class ObeliskSpecialRenderer<T extends TileEntity> extends TileEntitySpec
protected void renderItemStack(T te, World world, double x, double y, double z, float tick) {
if (ei == null) {
ei = new EntityItem(world, 0, 0, 0, getFloatingItem(te));
ei = new EntityItem(null, 0, 0, 0, getFloatingItem(te));
}
ei.setEntityItemStack(getFloatingItem(te));