mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Actually prevent shoving. Why the heck does it require three overrides??
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user