mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 20:22:36 +00:00
Add a config option to disable the death penality durability loss
This commit is contained in:
1 parent
8c8599c68b
commit
72c180fab4
2 files changed
+5
No files matched your search
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user