Prevent End Cake from crashing fake players

Closes #178
This commit is contained in:
thedarkcolour 2026-05-15 17:36:33 -07:00
parent b10be3cca3
commit 20b83007a8
2 changed files with 4 additions and 1 deletions

View File

@ -11,6 +11,7 @@
- Added new Sand sieve drops:
- Dry Short Grass now drops from String Mesh
- Fixed Compressed Sieves not allowing simultaneous insertion of material even when Simultaneous Compressed Sieve Usage was enabled
- Fixed End Cakes crashing fake players (#178)
## Ex Deorum 3.10
- Now requires KubeJS 7.2 to fix incompatibility (#158)

View File

@ -89,8 +89,10 @@ public class EndCakeBlock extends CakeBlock {
return InteractionResult.PASS;
}
// todo test
private static boolean tryTeleport(ServerLevel level, Player player) {
// avoid crashing with fake players (#178)
if (player.isFakePlayer()) return false;
if (level.dimension() != Level.END) {
var endLevel = level.getServer().getLevel(Level.END);