Compare commits

..
1 Commits
Author SHA1 Message Date
Discreater 94e3293b8e Fix wrong keys in lang file (#126) 2026-11-07 14:58:35 -05:00
3 changed files with 7 additions and 23 deletions

No files matched your search

+2 -2
View File
@@ -3,9 +3,9 @@ name: Build and test
on:
pull_request:
branches: [ master, main, release/** ]
branches: [ master, main ]
push:
branches: [ master, main, release/** ]
branches: [ master, main ]
jobs:
build-and-test:
+5 -15
View File
@@ -20,10 +20,6 @@ public class EMTConfigHandler {
public static final String RESEARCH = "Research";
public static final String VALUES = "Numeric Values";
public static final String OUTPUTS = "Essentia Generator Outputs";
private static final String IGNORED_UNDER_GTNH = "Ignored when GTNH (dreamcraft) is installed: "
+ "dungeon loot is controlled by config/TooMuchLoot/loot/dungeonChest.xml in GTNH.";
public static Configuration config;
public static int etherealProcessorBaseSpeed;
public static int etherealProcessorBonus;
@@ -191,25 +187,19 @@ public class EMTConfigHandler {
"Disable smoke effect for boots",
false,
"This effect only appears when the player isn't on the ground").getBoolean(smoke);
oneRingSpawn = config.get(
RANDOM,
"Disable One Ring in dungeon chests",
true,
"There is a recipe to get this item. " + IGNORED_UNDER_GTNH).getBoolean(oneRingSpawn);
oneRingSpawn = config
.get(RANDOM, "Disable One Ring in dungeon chests", true, "There is a recipe to get this item.")
.getBoolean(oneRingSpawn);
chanceTaintedMjolnir = config.get(
RANDOM,
"Tainted Mjolnir spawning change",
25,
"If you have a lot of mods adding dungeon loot, you should definetely increase this. "
+ IGNORED_UNDER_GTNH)
.getInt();
"If you have a lot of mods adding dungeon loot, you should definetely increase this").getInt();
chanceOneRing = config.get(
RANDOM,
"One Ring spawning chance",
15,
"If you have a lot of mods adding dungeon loot, you should definetely increase this. "
+ IGNORED_UNDER_GTNH)
.getInt();
"If you have a lot of mods adding dungeon loot, you should definetely increase this").getInt();
removeAmberAndCinnabarMacerating = config
.get(
RANDOM,
@@ -4,17 +4,11 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.WeightedRandomChestContent;
import net.minecraftforge.common.ChestGenHooks;
import cpw.mods.fml.common.Loader;
import emt.init.EMTItems;
public class EMTDungeonChestGenerator {
public static void generateLoot() {
// GTNH replaces the whole dungeonChest table from config/TooMuchLoot/loot/dungeonChest.xml at
// FMLServerStartingEvent, which discards everything registered here. Edit that file instead.
if (Loader.isModLoaded("dreamcraft")) {
return;
}
if (!EMTConfigHandler.thorHammerResearch) {
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(
new WeightedRandomChestContent(