mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 08:18:00 +01:00
Fixed feathers dropping on the client. Fixes #383
This commit is contained in:
parent
6f9af46060
commit
7c779eb2e3
1 changed files with 1 additions and 1 deletions
|
@ -463,7 +463,7 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
|
||||||
entity.damage(entity.getDamageSources().generic(), 0.5F);
|
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) {
|
if (pony.getObservedSpecies() != Race.BAT && entity.getWorld().random.nextInt(9000) == 0) {
|
||||||
entity.dropItem(pony.getObservedSpecies() == Race.HIPPOGRIFF ? UItems.GRYPHON_FEATHER : UItems.PEGASUS_FEATHER);
|
entity.dropItem(pony.getObservedSpecies() == Race.HIPPOGRIFF ? UItems.GRYPHON_FEATHER : UItems.PEGASUS_FEATHER);
|
||||||
playSound(USounds.ENTITY_PLAYER_PEGASUS_MOLT, 0.3F, 1);
|
playSound(USounds.ENTITY_PLAYER_PEGASUS_MOLT, 0.3F, 1);
|
||||||
|
|
Loading…
Reference in a new issue