Update CoreBlock.java

This commit is contained in:
Anuken 2019-11-14 12:28:35 -05:00 committed by GitHub
parent 77001324e9
commit 1a26a1bf63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;