Fixed (regression) spellbook not having a page when first placed

This commit is contained in:
Sollace 2024-05-28 13:32:40 +01:00
parent c510c727fa
commit cf4d98078c
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -75,6 +75,7 @@ public class SpellbookEntity extends MobEntity implements MagicImmune {
super(type, world); super(type, world);
setPersistent(); setPersistent();
setAltered(world.random.nextInt(3) == 0); setAltered(world.random.nextInt(3) == 0);
state.setCurrentPageId(SpellbookState.CRAFTING_ID);
if (!world.isClient) { if (!world.isClient) {
state.setSynchronizer(state -> { state.setSynchronizer(state -> {
getWorld().getPlayers().forEach(player -> { getWorld().getPlayers().forEach(player -> {