diff --git a/gradle.properties b/gradle.properties index f62a5b7..43ec0d8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,7 +7,7 @@ minecraft_version=1.21.1 yarn_mappings=1.21.1+build.3 loader_version=0.16.0 # Mod Properties -mod_version=1.1.8+1.21.1 +mod_version=1.1.9 maven_group=systems.brn.televator archives_base_name=televator # Dependencies diff --git a/src/main/java/systems/brn/televator/Televator.java b/src/main/java/systems/brn/televator/Televator.java index aca2d8b..cfa1fb8 100644 --- a/src/main/java/systems/brn/televator/Televator.java +++ b/src/main/java/systems/brn/televator/Televator.java @@ -26,17 +26,17 @@ public class Televator implements ModInitializer { // Check if the player is sneaking if (player.isSneaking() && player.isOnGround()) { BlockPos testPos = player.getBlockPos().down(); - if(player.getWorld().getBlockState(testPos).getBlock() instanceof TelevatorBlock jumpVaderBlock) { - jumpVaderBlock.handleMovement(testPos, player, false); + if(player.getWorld().getBlockState(testPos).getBlock() instanceof TelevatorBlock televatorBlock) { + televatorBlock.handleMovement(testPos, player, false); } } // Check if the player is jumping if (player.getVelocity().y > 0 && !player.isOnGround()) { BlockPos testPos = player.getBlockPos().down(); - if(player.getWorld().getBlockState(testPos).getBlock() instanceof TelevatorBlock jumpVaderBlock) + if(player.getWorld().getBlockState(testPos).getBlock() instanceof TelevatorBlock televatorBlock) { - jumpVaderBlock.handleMovement(testPos, player, true); + televatorBlock.handleMovement(testPos, player, true); } } }); diff --git a/src/main/resources/data/televator/loot_tables/blocks/televator.json b/src/main/resources/data/televator/loot_table/blocks/televator.json similarity index 100% rename from src/main/resources/data/televator/loot_tables/blocks/televator.json rename to src/main/resources/data/televator/loot_table/blocks/televator.json diff --git a/src/main/resources/data/televator/recipes/televator.json b/src/main/resources/data/televator/recipe/televator.json similarity index 100% rename from src/main/resources/data/televator/recipes/televator.json rename to src/main/resources/data/televator/recipe/televator.json