Krypton infusion pedestal fix
This commit is contained in:
parent
ac96841372
commit
105f8cd862
3 changed files with 9 additions and 4 deletions
|
@ -84,7 +84,7 @@ public class InfusionPedestal extends PedestalBlock {
|
|||
BlockState blockState,
|
||||
BlockEntityType<T> blockEntityType
|
||||
) {
|
||||
return InfusionPedestalEntity::tickEnity;
|
||||
return InfusionPedestalEntity::tickEntity;
|
||||
}
|
||||
|
||||
static {
|
||||
|
|
|
@ -52,13 +52,15 @@ public class InfusionPedestalEntity extends PedestalBlockEntity {
|
|||
protected void fromTag(CompoundTag tag) {
|
||||
super.fromTag(tag);
|
||||
if (tag.contains("ritual")) {
|
||||
linkedRitual = new InfusionRitual(this, level, worldPosition);
|
||||
if (!hasRitual()) {
|
||||
linkedRitual = new InfusionRitual(this, level, worldPosition);
|
||||
}
|
||||
linkedRitual.fromTag(tag.getCompound("ritual"));
|
||||
linkedRitual.configure();
|
||||
}
|
||||
}
|
||||
|
||||
public static <T extends BlockEntity> void tickEnity(
|
||||
public static <T extends BlockEntity> void tickEntity(
|
||||
Level level,
|
||||
BlockPos blockPos,
|
||||
BlockState blockState,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue