diff --git a/gradle.properties b/gradle.properties index f4e2b67..9903860 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ minecraft_version=1.15.2 yarn_mappings=1.15.2+build.17 loader_version=0.8.9+build.203 - mod_version = 1.0.0 + mod_version = 1.0.1 maven_group = net.ludocrypt archives_base_name = backrooms fabric_version=0.14.0+build.317-1.15 \ No newline at end of file diff --git a/src/main/java/net/ludocrypt/backrooms/Backrooms.java b/src/main/java/net/ludocrypt/backrooms/Backrooms.java index fcaa923..3a2cea0 100644 --- a/src/main/java/net/ludocrypt/backrooms/Backrooms.java +++ b/src/main/java/net/ludocrypt/backrooms/Backrooms.java @@ -78,7 +78,7 @@ public class Backrooms implements ModInitializer { public static boolean Display = false; public static int DisplayLevel = 0; public static final String MOD_ID = "backrooms"; - + public static PlayerEntity teleportedEntity = null; // items public static final Item RAW_ALMOND_WATER = new RawAlmondWaterItem(new Item.Settings().group(ItemGroup.FOOD) .food(new FoodComponent.Builder().hunger(3).snack().alwaysEdible().saturationModifier(1).build())); diff --git a/src/main/java/net/ludocrypt/backrooms/mixin/GoToBackroomsMixin.java b/src/main/java/net/ludocrypt/backrooms/mixin/GoToBackroomsMixin.java index a1c1527..c197902 100644 --- a/src/main/java/net/ludocrypt/backrooms/mixin/GoToBackroomsMixin.java +++ b/src/main/java/net/ludocrypt/backrooms/mixin/GoToBackroomsMixin.java @@ -35,7 +35,7 @@ private void onPearlHit(HitResult hitResult, CallbackInfo ci) { if ((playerEntity.dimension != BackroomsDimensionTypes.LEVEL0)) { ci.cancel(); pearlEntity.kill(); - Backrooms.teleportPlayer(playerEntity, BackroomsDimensionTypes.LEVEL0); + Backrooms.teleportedEntity = playerEntity; } } diff --git a/src/main/java/net/ludocrypt/backrooms/mixin/PlayerMixin.java b/src/main/java/net/ludocrypt/backrooms/mixin/PlayerMixin.java index ec8c8a9..b2bca14 100644 --- a/src/main/java/net/ludocrypt/backrooms/mixin/PlayerMixin.java +++ b/src/main/java/net/ludocrypt/backrooms/mixin/PlayerMixin.java @@ -27,7 +27,10 @@ private void onEntityTick(CallbackInfo ci) { Backrooms.teleportPlayer(playerEntity, BackroomsDimensionTypes.LEVEL0); } } - + } + if (Backrooms.teleportedEntity == playerEntity) { + Backrooms.teleportPlayer(playerEntity, BackroomsDimensionTypes.LEVEL0); + Backrooms.teleportedEntity = null; } } } diff --git a/src/main/resources/assets/backrooms/icon.png b/src/main/resources/assets/backrooms/icon.png index 22b7f20..6c77cf2 100644 Binary files a/src/main/resources/assets/backrooms/icon.png and b/src/main/resources/assets/backrooms/icon.png differ diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 2122761..799185e 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -1,7 +1,7 @@ { "schemaVersion": 1, "id": "backrooms", - "version": "1.0.0", + "version": "1.0.1", "name": "The Backrooms", "description": "The backrooms, endless mono yellow rooms to traverse.",