emulate vanilla behavior by default

This commit is contained in:
UnixSupremacist committed 2023-02-11 09:11:57 -06:00
1 parent 96dd538f61
commit 2f65d57116
2 files changed
+10 -4

No files matched your search

+2
View File
@@ -286,6 +286,8 @@ public class TConstruct {
@SubscribeEvent
public void onEntitySpawn(EntityJoinWorldEvent event) {
// return if config is zero to keep vanilla functionality
if (PHConstruct.globalDespawn == 0) return;
if (event.entity instanceof EntityItem) {
EntityItem ourGuy = (EntityItem) event.entity;
if (ourGuy.lifespan == 6000) {
@@ -71,10 +71,14 @@ public class PHConstruct {
"Difficulty Changes",
"Add alternative recipe for bolt parts: arrowhead + toolrod in a crafting grid",
false).getBoolean(false);
indestructible = config.get("Difficulty Changes", "Dropped tools are indestructible", false).getBoolean(false);
globalDespawn = config.get("Difficulty Changes", "Global item despawn time", 18000).getInt(18000);
dropCanisters = config.get("Difficulty Changes", "Drop heart canisters on death", true).getBoolean(true);
daggerThrowMultiplier = config.get("Difficulty Changes", "Thrown dagger output multiplier", 3).getDouble(3);
indestructible = config.get("Difficulty Changes", "Dropped tools are indestructible", true).getBoolean(true);
globalDespawn = config.get(
"Difficulty Changes",
"Global item despawn time",
0,
"Changes the despawn time of all items, 0 is vanilla behavior").getInt(0);
dropCanisters = config.get("Difficulty Changes", "Drop heart canisters on death", false).getBoolean(false);
daggerThrowMultiplier = config.get("Difficulty Changes", "Thrown dagger output multiplier", 1).getDouble(1);
naturalSlimeSpawn = config.get("Mobs", "Blue Slime spawn chance", 1, "Set to 0 to disable").getInt(1);