Actually prevent shoving. Why the heck does it require three overrides??

This commit is contained in:
Vincent Lee committed 2016-06-18 19:04:54 -05:00
1 parent 3c9388702c
commit 7d87732ccb
1 file changed
+12
@@ -776,6 +776,18 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBoss {
this.bossInfo.removePlayer(player);
}
@Override
protected void collideWithEntity(Entity entity) {
if(getInvulTime() == 0)
super.collideWithEntity(entity);
}
@Override
protected void collideWithNearbyEntities() {
if(getInvulTime() == 0)
super.collideWithNearbyEntities();
}
@Override
public boolean canBePushed() {
return super.canBePushed() && getInvulTime() == 0;