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);
setPersistent();
setAltered(world.random.nextInt(3) == 0);
state.setCurrentPageId(SpellbookState.CRAFTING_ID);
if (!world.isClient) {
state.setSynchronizer(state -> {
getWorld().getPlayers().forEach(player -> {