mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed (regression) spellbook not having a page when first placed
This commit is contained in:
parent
c510c727fa
commit
cf4d98078c
1 changed files with 1 additions and 0 deletions
|
@ -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 -> {
|
||||
|
|
Loading…
Reference in a new issue