mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-2398: Armor stands still need to be treated special for gravity
By: md_5 <git@md-5.net>
This commit is contained in:
parent
5c09622671
commit
f5e45ed35f
1 changed files with 7 additions and 0 deletions
|
@ -149,6 +149,13 @@ public class CraftArmorStand extends CraftLivingEntity implements ArmorStand {
|
|||
getHandle().setBasePlate(!basePlate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setGravity(boolean gravity) {
|
||||
super.setGravity(gravity);
|
||||
// Armor stands are special
|
||||
getHandle().noclip = !gravity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isVisible() {
|
||||
return !getHandle().isInvisible();
|
||||
|
|
Loading…
Add table
Reference in a new issue