From 7c779eb2e39f2e7d03117390293ded8996345a0c Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 16 Sep 2024 17:56:55 +0100 Subject: [PATCH] Fixed feathers dropping on the client. Fixes #383 --- .../minelittlepony/unicopia/entity/player/PlayerPhysics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java index 59eb9d80..6b729dfd 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java @@ -463,7 +463,7 @@ public class PlayerPhysics extends EntityPhysics implements Tickab entity.damage(entity.getDamageSources().generic(), 0.5F); } - if (type.isAvian()) { + if (type.isAvian() && !entity.getWorld().isClient) { if (pony.getObservedSpecies() != Race.BAT && entity.getWorld().random.nextInt(9000) == 0) { entity.dropItem(pony.getObservedSpecies() == Race.HIPPOGRIFF ? UItems.GRYPHON_FEATHER : UItems.PEGASUS_FEATHER); playSound(USounds.ENTITY_PLAYER_PEGASUS_MOLT, 0.3F, 1);