diff --git a/changelog.md b/changelog.md index 17a42abd..4da8db99 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +## Ex Deorum 3.11 +- Fixed End Cakes crashing fake players (#178) + ## Ex Deorum 3.10 - Now requires KubeJS 7.2 to fix incompatibility (#158) diff --git a/src/main/java/thedarkcolour/exdeorum/block/EndCakeBlock.java b/src/main/java/thedarkcolour/exdeorum/block/EndCakeBlock.java index fd5f7d81..a29ff41f 100644 --- a/src/main/java/thedarkcolour/exdeorum/block/EndCakeBlock.java +++ b/src/main/java/thedarkcolour/exdeorum/block/EndCakeBlock.java @@ -89,8 +89,9 @@ public class EndCakeBlock extends CakeBlock { return InteractionResult.PASS; } - // todo test private static boolean tryTeleport(ServerLevel level, Player player) { + if (player.isFakePlayer()) return false; + if (level.dimension() != Level.END) { var endLevel = level.getServer().getLevel(Level.END);