SPIGOT-2106, SPIGOT-3942: Improve collidable API

By: Phoenix616 <mail@moep.tv>
This commit is contained in:
CraftBukkit/Spigot
2020-06-25 10:00:00 +10:00
parent dc5ebfac9a
commit bafa4625d1
5 changed files with 107 additions and 63 deletions

View File

@@ -27,6 +27,15 @@
if (entityhuman.isCreative() || !this.isInvulnerable()) {
this.damageEntity(DamageSource.playerAttack(entityhuman), Float.MAX_VALUE);
}
@@ -315,7 +315,7 @@
@Override
public boolean isCollidable() {
- return true;
+ return super.isCollidable(); // CraftBukkit - collidable API
}
@Override
@@ -330,7 +330,7 @@
if (this.isInvulnerable(damagesource)) {
return false;