Fixed a bug that allowed you to see through blocks with the Stalinium Press and Cache

This commit is contained in:
2025-06-11 11:46:50 +02:00
parent c43ca37688
commit ee3269f504
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ mod_name=Stalinium
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT
# The mod version. See https://semver.org/
mod_version=0.2.0
mod_version=0.2.1
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
@@ -45,11 +45,11 @@ public class ModBlocks {
.sound(SoundType.NETHERITE_BLOCK)));
public static final DeferredBlock<Block> STALINIUM_PRESS = registerBlock("stalinium_press",
() -> new StaliniumPressBlock(BlockBehaviour.Properties.of()));
() -> new StaliniumPressBlock(BlockBehaviour.Properties.of().noOcclusion()));
public static final DeferredBlock<Block> STALINIUM_CACHE = registerBlock(
"stalinium_cache",
() -> new StaliniumCacheBlock(BlockBehaviour.Properties.of()));
() -> new StaliniumCacheBlock(BlockBehaviour.Properties.of().noOcclusion()));
private static <T extends Block> DeferredBlock<T> registerBlock(String name, Supplier<T> block) {
DeferredBlock<T> toReturn = BLOCKS.register(name, block);