From cf4d98078c6099b665ac90f3a0074d33d869828c Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 28 May 2024 13:32:40 +0100 Subject: [PATCH] Fixed (regression) spellbook not having a page when first placed --- .../com/minelittlepony/unicopia/entity/mob/SpellbookEntity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/SpellbookEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/SpellbookEntity.java index 5808aea4..41180bda 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/SpellbookEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/SpellbookEntity.java @@ -75,6 +75,7 @@ public class SpellbookEntity extends MobEntity implements MagicImmune { super(type, world); setPersistent(); setAltered(world.random.nextInt(3) == 0); + state.setCurrentPageId(SpellbookState.CRAFTING_ID); if (!world.isClient) { state.setSynchronizer(state -> { getWorld().getPlayers().forEach(player -> {