Eternal pedestals fix
This commit is contained in:
parent
86a37e5770
commit
7e7dad084e
2 changed files with 3 additions and 4 deletions
|
@ -27,9 +27,10 @@ public class EternalPedestalEntity extends PedestalBlockEntity {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setLevel(Level world) {
|
public void setLevel(Level level) {
|
||||||
|
super.setLevel(level);
|
||||||
if (hasRitual()) {
|
if (hasRitual()) {
|
||||||
linkedRitual.setWorld(world);
|
linkedRitual.setWorld(level);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,8 +37,6 @@ public class PedestalItemRenderer<T extends PedestalBlockEntity> implements Bloc
|
||||||
BlockState state = world.getBlockState(blockEntity.getBlockPos());
|
BlockState state = world.getBlockState(blockEntity.getBlockPos());
|
||||||
if (!(state.getBlock() instanceof PedestalBlock)) return;
|
if (!(state.getBlock() instanceof PedestalBlock)) return;
|
||||||
|
|
||||||
System.out.println(state.getBlock());
|
|
||||||
|
|
||||||
ItemStack activeItem = blockEntity.getItem(0);
|
ItemStack activeItem = blockEntity.getItem(0);
|
||||||
|
|
||||||
matrices.pushPose();
|
matrices.pushPose();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue