Fixed TNT and Obsidian Bug

This commit is contained in:
Driftay 2019-03-27 10:47:47 -04:00
parent 6cd2a80c36
commit 173676fa31

View File

@ -280,7 +280,7 @@ public class FactionsEntityListener implements Listener {
@SuppressWarnings("deprecation")
int id = target.getType().getId();
// ignore air, bedrock, water, lava, obsidian, enchanting table, etc.... too bad we can't get a blast resistance value through Bukkit yet
if (id != 0 && (id < 7 || id > 11) && id != 49 && id != 90 && id != 116 && id != 119 && id != 120 && id != 130) {
if (id != 0 && (id < 7 || id > 11) && id != 90 && id != 116 && id != 119 && id != 120 && id != 130) {
target.breakNaturally();
}
}