Update CoreBlock.java

This commit is contained in:
Anuken
2019-11-14 12:28:35 -05:00
committed by GitHub
parent 77001324e9
commit 1a26a1bf63

View File

@@ -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;