Skip to content

Commit

Permalink
Moa On load stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXBlade committed Nov 8, 2024
1 parent 193c6fb commit 1e501e5
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,11 @@ public void readCustomDataFromNbt(NbtCompound compound) {
if (inventory != DUMMY) {
inventory.readNbtList(compound.getList("chestContents", NbtElement.COMPOUND_TYPE), this.getRegistryManager());
}

calcGeneSpeeds();
moaSoundCallCooldown = 150 + random.nextInt(350);
songChance = MathHelper.clamp(random.nextFloat(), 0f, 0.3f);
randFlapTimer = getRandomFloat(200, 1000);
}

@Override
Expand Down Expand Up @@ -969,11 +974,6 @@ public boolean shouldContinue() {

@Override
public void start() {
calcGeneSpeeds();
moaSoundCallCooldown = 150 + random.nextInt(350);
songChance = MathHelper.clamp(random.nextFloat(), 0f, 0.3f);
randFlapTimer = getRandomFloat(200, 1000);

this.timer = 0;
super.start();
}
Expand Down

0 comments on commit 1e501e5

Please sign in to comment.