mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Prevent GG from being shoved while it's still spawning
This commit is contained in:
1 file changed
+5
@@ -776,6 +776,11 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBoss {
|
||||
this.bossInfo.removePlayer(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBePushed() {
|
||||
return super.canBePushed() && getInvulTime() == 0;
|
||||
}
|
||||
|
||||
private void spawnMissile() {
|
||||
EntityMagicMissile missile = new EntityMagicMissile(this, true);
|
||||
missile.setPosition(posX + (Math.random() - 0.5 * 0.1), posY + 2.4 + (Math.random() - 0.5 * 0.1), posZ + (Math.random() - 0.5 * 0.1));
|
||||
|
||||
Reference in new issue
Block a user