diff --git a/gradle.properties b/gradle.properties index 3324ea8..15229c0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,11 +1,11 @@ org.gradle.daemon=false org.gradle.jvmargs=-Xmx1G -minecraft_version=1.20.1 -yarn_mappings=1.20.1+build.2 -loader_version=0.14.21 -fabric_version=0.83.1+1.20.1 +minecraft_version=1.20.3 +yarn_mappings=1.20.3+build.1 +loader_version=0.15.7 +fabric_version=0.91.1+1.20.3 -mod_version=2.2 +mod_version=2.3 maven_group=pl.kosma archives_base_name=geodesy diff --git a/src/main/java/pl/kosma/geodesy/GeodesyCore.java b/src/main/java/pl/kosma/geodesy/GeodesyCore.java index 0d88202..d934373 100644 --- a/src/main/java/pl/kosma/geodesy/GeodesyCore.java +++ b/src/main/java/pl/kosma/geodesy/GeodesyCore.java @@ -6,9 +6,9 @@ import net.minecraft.block.entity.DropperBlockEntity; import net.minecraft.block.entity.HopperBlockEntity; import net.minecraft.block.entity.StructureBlockBlockEntity; +import net.minecraft.block.enums.BlockFace; import net.minecraft.block.enums.BlockHalf; import net.minecraft.block.enums.StructureBlockMode; -import net.minecraft.block.enums.WallMountLocation; import net.minecraft.block.enums.WireConnection; import net.minecraft.item.ItemStack; import net.minecraft.item.Items; @@ -130,8 +130,8 @@ void geodesyProject(Direction[] directions) { if (world.getBlockState(blockPosDirectionPair.getLeft()).getBlock() == Blocks.AMETHYST_CLUSTER) { clustersLeft.getAndIncrement(); world.setBlockState(blockPosDirectionPair.getLeft(), switch (blockPosDirectionPair.getRight()) { - case DOWN -> Blocks.SPRUCE_BUTTON.getDefaultState().with(Properties.WALL_MOUNT_LOCATION, WallMountLocation.CEILING); - case UP -> Blocks.SPRUCE_BUTTON.getDefaultState().with(Properties.WALL_MOUNT_LOCATION, WallMountLocation.FLOOR); + case DOWN -> Blocks.SPRUCE_BUTTON.getDefaultState().with(Properties.BLOCK_FACE, BlockFace.CEILING); + case UP -> Blocks.SPRUCE_BUTTON.getDefaultState().with(Properties.BLOCK_FACE, BlockFace.FLOOR); default -> Blocks.SPRUCE_BUTTON.getDefaultState().with(Properties.HORIZONTAL_FACING, blockPosDirectionPair.getRight()); }, NOTIFY_LISTENERS); } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 9dfa270..921796c 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -23,8 +23,8 @@ ] }, "depends": { - "fabricloader": ">=0.14.21", - "fabric": ">=0.81.0", - "minecraft": "1.20.x" + "fabricloader": ">=0.15.7", + "fabric": ">=0.91.1", + "minecraft": ">=1.20.3" } }