Skip to content

Commit 7132b3b

Browse files
committed
Charge Stone and Volcano block entitiy blocks crashing on place fixed.
1 parent 79aa90b commit 7132b3b

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

common/src/main/java/generations/gg/generations/core/generationscore/common/world/level/block/entities/generic/GenericBlastFurnaceBlockEntity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ class GenericBlastFurnaceBlockEntity(arg: BlockPos, arg2: BlockState) :
1515
override fun getDefaultName(): Component = Component.translatable("container.$name")
1616

1717
override fun getType(): BlockEntityType<*> = GenerationsBlockEntities.GENERIC_BLAST_FURNACE.get()
18+
19+
override fun isValidBlockState(blockState: BlockState): Boolean = GenerationsBlockEntities.GENERIC_BLAST_FURNACE.get().isValid(blockState)
1820
}

common/src/main/java/generations/gg/generations/core/generationscore/common/world/level/block/entities/generic/GenericFurnaceBlockEntity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ class GenericFurnaceBlockEntity(pos: BlockPos, state: BlockState) : FurnaceBlock
1515
override fun getDefaultName(): Component = "container.$name".asTranslated()
1616

1717
override fun getType(): BlockEntityType<*> = GenerationsBlockEntities.GENERIC_FURNACE.get()
18+
19+
override fun isValidBlockState(blockState: BlockState): Boolean = GenerationsBlockEntities.GENERIC_FURNACE.get().isValid(blockState)
1820
}

common/src/main/java/generations/gg/generations/core/generationscore/common/world/level/block/entities/generic/GenericSmokerBlockEntity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ class GenericSmokerBlockEntity(pos: BlockPos, state: BlockState) : SmokerBlockEn
1515
override fun getDefaultName(): Component = "container.$name".asTranslated()
1616

1717
override fun getType(): BlockEntityType<*> = GenerationsBlockEntities.GENERIC_SMOKER.get()
18+
19+
override fun isValidBlockState(blockState: BlockState): Boolean = GenerationsBlockEntities.GENERIC_SMOKER.get().isValid(blockState)
1820
}

0 commit comments

Comments
 (0)