diff --git a/src/main/java/tconstruct/tools/TinkerToolEvents.java b/src/main/java/tconstruct/tools/TinkerToolEvents.java index b6d31099..b8f7270f 100644 --- a/src/main/java/tconstruct/tools/TinkerToolEvents.java +++ b/src/main/java/tconstruct/tools/TinkerToolEvents.java @@ -439,6 +439,9 @@ public class TinkerToolEvents @SubscribeEvent public void damageToolsOnDeath (PlayerDropsEvent event) { + if(!PHConstruct.deathPenality) + return; + for(EntityItem drop : event.drops) { // we're only interested in tools diff --git a/src/main/java/tconstruct/util/config/PHConstruct.java b/src/main/java/tconstruct/util/config/PHConstruct.java index 826fe100..315d72b9 100644 --- a/src/main/java/tconstruct/util/config/PHConstruct.java +++ b/src/main/java/tconstruct/util/config/PHConstruct.java @@ -43,6 +43,7 @@ public class PHConstruct keepHunger = config.get("Difficulty Changes", "Keep hunger on death", true).getBoolean(true); keepLevels = config.get("Difficulty Changes", "Keep levels on death", true).getBoolean(true); beginnerBook = config.get("Difficulty Changes", "Spawn beginner book", true).getBoolean(true); + deathPenality = config.get("Difficulty Changes", "Tools lose 10% durability on death", true).getBoolean(true); enableTWood = config.get("Difficulty Changes", "Enable mod wooden tools", true).getBoolean(true); enableTStone = config.get("Difficulty Changes", "Enable mod stone tools", true).getBoolean(true); @@ -285,6 +286,7 @@ public class PHConstruct // Difficulty modifiers public static boolean keepHunger; public static boolean keepLevels; + public static boolean deathPenality; public static boolean alphaRegen; public static boolean alphaHunger;