Quark Oddities

Quark Oddities

22M Downloads

quark stone marble slab crash server

Opened this issue · 9 comments

commented
commented

I see this:

java.lang.RuntimeException: java.lang.IllegalArgumentException: Cannot get property PropertyEnum{name=half, clazz=class net.minecraft.block.BlockSlab$EnumBlockHalf, values=[top, bottom]} as it does not exist in BlockStateContainer{block=quark:stone_marble_slab_double, properties=[prop]}

commented

It looks like quark slab missing some properties. I have no similar crash with vanilla block or another modded block.

commented
commented

When I deobf/decompile CustomMobSpawner see this code:

  public static boolean canCreatureSpawn(IBlockState blockstate, World world, BlockPos pos)
  {
    Block block = blockstate.getBlock();
    if ((block instanceof BlockSlab))
      line 623 ----> return (blockstate.isFullBlock()) || (blockstate.getValue(BlockSlab.HALF) == BlockSlab.EnumBlockHalf.TOP);
    if ((block instanceof BlockStairs)) {
      return blockstate.getValue(BlockStairs.HALF) == BlockStairs.EnumHalf.TOP;
    }
    return blockstate.isSideSolid(world, pos, EnumFacing.UP);
  }

I see no problem here.

commented
commented

Could You please make some workaround inside Quark? CMS isnt open source/there is no way effectively report issues etc.

commented

Trying to fix this broke every slab in the mod. You can forget that idea >_>

commented

Problem is double slab. When player place two stone marble slabs, blockstate.isFullBlock() should set to true.