Skip to content

Commit

Permalink
fix default blast protection from fireballs on 1.8.8 (#937)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei1058 authored Dec 4, 2023
1 parent 5e68a61 commit 22a334c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ public MainConfig(Plugin plugin, String name) {
yml.addDefault(ConfigPath.GENERAL_TNT_JUMP_DAMAGE_OTHERS, 10);

// tnd block blast resistance
yml.addDefault(ConfigPath.GENERAL_TNT_PROTECTION_END_STONE_BLAST, 12f);
// on 1.8.8 it has to be around 69, on 1.20 and 1.18 it works fine with 12 (tested)
yml.addDefault(ConfigPath.GENERAL_TNT_PROTECTION_END_STONE_BLAST, BedWars.nms.getVersion() == 0 ? 69f : 12f);
yml.addDefault(ConfigPath.GENERAL_TNT_PROTECTION_GLASS_BLAST, 300f);
yml.addDefault(ConfigPath.GENERAL_TNT_RAY_BLOCKED_BY_GLASS, true);

Expand Down Expand Up @@ -382,6 +383,7 @@ public MainConfig(Plugin plugin, String name) {
try {
Bukkit.spigot().getConfig().save("spigot.yml");
} catch (IOException e) {
//noinspection CallToPrintStackTrace
e.printStackTrace();
}

Expand Down

0 comments on commit 22a334c

Please sign in to comment.