From 419a5ab6079a6ed1a4069dc1e74f5b13c6c2b9a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sun, 18 Aug 2024 11:50:01 +0200 Subject: [PATCH] Fix update stuff --- gradle.properties | 2 +- src/main/java/systems/brn/televator/Televator.java | 8 ++++---- .../{loot_tables => loot_table}/blocks/televator.json | 0 .../data/televator/{recipes => recipe}/televator.json | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename src/main/resources/data/televator/{loot_tables => loot_table}/blocks/televator.json (100%) rename src/main/resources/data/televator/{recipes => recipe}/televator.json (100%) 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