mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +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);
|
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 -> {
|
||||||
|
|
Loading…
Reference in a new issue