mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 23:28:52 +07:00
Update CoreBlock.java
This commit is contained in:
parent
77001324e9
commit
1a26a1bf63
@ -130,6 +130,14 @@ public class CoreBlock extends StorageBlock{
|
||||
return tile.entity instanceof StorageBlockEntity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float handleDamage(Tile tile, float amount){
|
||||
it(player != null && tile.getTeam() == player.getTeam()){
|
||||
Events.fire(Trigger.teamCoreDamage);
|
||||
}
|
||||
return amount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBreak(Tile tile){
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user