Skip to content

Commit

Permalink
fixed major epaerl bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LudoCrypt committed Jul 22, 2020
1 parent 5c3a015 commit 6d46ed8
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/main/java/net/ludocrypt/backrooms/Backrooms.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down
5 changes: 4 additions & 1 deletion src/main/java/net/ludocrypt/backrooms/mixin/PlayerMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down
Binary file modified src/main/resources/assets/backrooms/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -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.",
Expand Down

0 comments on commit 6d46ed8

Please sign in to comment.