Skip to content

Commit

Permalink
Just apply the chicken effects every tick lol. Fixes #4473
Browse files Browse the repository at this point in the history
  • Loading branch information
quat1024 committed Dec 14, 2023
1 parent 34d2276 commit 3898860
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ public void playerTick(ZPlayerTick.Start event) {

if(level instanceof ServerLevel slevel)
slevel.getChunkSource().chunkMap.broadcast(player, new ClientboundSetPassengersPacket(player));
} else if(!player.hasEffect(MobEffects.SLOW_FALLING)) {
} else {
player.addEffect(new MobEffectInstance(MobEffects.SLOW_FALLING, 5, 0, true, false));

if(slownessLevel > 0 && !player.hasEffect(MobEffects.MOVEMENT_SLOWDOWN))
if(slownessLevel > 0)
player.addEffect(new MobEffectInstance(MobEffects.MOVEMENT_SLOWDOWN, 5, slownessLevel - 1, true, false));
}
}
Expand Down

0 comments on commit 3898860

Please sign in to comment.