~williewillus/botania

9e0c11bf3cec677fab1031a95216883584e34a7e — Vincent Lee 3 months ago 0795950
Allow spectral platforms to support redstone and other components again

Closes #4473
1 files changed, 8 insertions(+), 0 deletions(-)

M Xplat/src/main/java/vazkii/botania/common/block/PlatformBlock.java
M Xplat/src/main/java/vazkii/botania/common/block/PlatformBlock.java => Xplat/src/main/java/vazkii/botania/common/block/PlatformBlock.java +8 -0
@@ 97,6 97,14 @@ public class PlatformBlock extends BotaniaBlock implements ManaCollisionGhost, E
		}
	}

	@NotNull
	@Override
	public VoxelShape getBlockSupportShape(@NotNull BlockState state, @NotNull BlockGetter level, @NotNull BlockPos pos) {
		// Vanilla defaults support shape to collision shape, but spectral platforms don't collide,
		// so set this by hand.
		return Shapes.block();
	}

	@Override
	public float getShadeBrightness(BlockState state, BlockGetter level, BlockPos pos) {
		return 1.0F;