Paladin's Furniture

Paladin's Furniture

7M Downloads

[1.21.1-v1.3-neoforge] Game crashes when placing Cooking Table (Cooking For Blockheads Compatibility)

MineCake147E opened this issue ยท 2 comments

commented

Bug Description

As the title suggests, the game crashes when I put a Cooking Table.

Screenshot before the game crashes:

Image

The crash report suggests that Minecraft could be validating the block types for block entities.
Quote from crash report:

Time: 2025-02-07 14:48:48
Description: Unexpected error

java.lang.IllegalStateException: Invalid block entity cookingforblockheads:cooking_table // net.blay09.mods.cookingforblockheads.block.entity.CookingTableBlockEntity state at BlockPos{x=532, y=68, z=603}, got Block{pfm:cooking_table}
	at TRANSFORMER/[email protected]/net.minecraft.world.level.block.entity.BlockEntity.validateBlockState(BlockEntity.java:52) ~[client-1.21.1-20240808.144430-srg.jar%23183!/:?] {re:classloading}
	at TRANSFORMER/[email protected]/net.minecraft.world.level.block.entity.BlockEntity.<init>(BlockEntity.java:46) ~[client-1.21.1-20240808.144430-srg.jar%23183!/:?] {re:classloading}
	at TRANSFORMER/[email protected]/net.blay09.mods.balm.api.block.entity.BalmBlockEntityBase.<init>(BalmBlockEntityBase.java:12) ~[balm-neoforge-1.21.1-21.0.23.jar%23185!/:21.0.23] {re:classloading}
	at TRANSFORMER/[email protected]/net.blay09.mods.balm.common.BalmBlockEntity.<init>(BalmBlockEntity.java:36) ~[balm-neoforge-1.21.1-21.0.23.jar%23185!/:21.0.23] {re:classloading}
	at TRANSFORMER/[email protected]/net.blay09.mods.cookingforblockheads.block.entity.CookingTableBlockEntity.<init>(CookingTableBlockEntity.java:30) ~[cookingforblockheads-neoforge-1.21.1-21.1.8.jar%23186!/:21.1.8] {re:classloading}
	at TRANSFORMER/[email protected]/com.unlikepaladin.pfm.compat.cookingforblockheads.neoforge.PFMCookingTableBlock.newBlockEntity(PFMCookingTableBlock.java:73) ~[paladin-furniture-mod-1.3-neoforge-mc1.21.1.jar%23187!/:?] {re:classloading}
	at TRANSFORMER/[email protected]/net.minecraft.world.level.chunk.LevelChunk.setBlockState(LevelChunk.java:294) ~[client-1.21.1-20240808.144430-srg.jar%23183!/:?] {re:classloading}

According to the source code, PFM is trying to use the CookingTableBlockEntity created by C4BH for its own Cooking Table, expecting everyone else to ignore the block type mismatch:

@Nullable
@Override
public BlockEntity createBlockEntity(BlockPos pos, BlockState state) {
return new CookingTableBlockEntity(pos, state);
}

Reproduction Steps

  1. Install paladin-furniture-mod-1.3-neoforge-mc1.21.1 and cookingforblockheads-neoforge-1.21.1-21.1.8 via Modrinth
  2. Create or load a world in creative mode
  3. Place a Cooking Table on any block
  4. The game crashes

Log File

crash-2025-02-07_14.48.48-client.txt

debug.log

commented

ty for the report

commented

Fixed on 1.4