remove dupe protection

This commit is contained in:
radimous 2024-12-05 09:17:29 +01:00
parent 64b42515df
commit ef0bfec587
3 changed files with 1 additions and 8 deletions

View file

@ -5,7 +5,6 @@ import net.minecraftforge.common.ForgeConfigSpec;
public class Config {
public static final ForgeConfigSpec SPEC;
public static final ForgeConfigSpec.BooleanValue VAULT_SCREEN_BUTTON;
public static final ForgeConfigSpec.BooleanValue ALLOW_DUPE;
public static final ForgeConfigSpec.IntValue BUTTON_X;
public static final ForgeConfigSpec.IntValue BUTTON_Y;
public static final ForgeConfigSpec.IntValue MAX_LEVEL_OVERRIDE;
@ -32,9 +31,6 @@ public class Config {
builder.pop();
builder.push("DEBUG");
ALLOW_DUPE = builder
.comment("allow duplicate modifiers")
.define("allowDupe", false);
QOL_HUNTERS_CONFLICT_RESOLUTION = builder
.comment("QOL Hunters conflict resolution")
.define("QOLHuntersConflictResolution", true);

View file

@ -107,10 +107,8 @@ public class Modifiers {
full.append(modComp);
if (Config.ALLOW_DUPE.get() || true|| !(componentList.get(componentList.size() - 1).getString()).equals(full.getString())) {
componentList.add(full);
}
}
// more than 7 groups is a bit crazy, but just in case
boolean useNums = groupedModifiers.size() > COLORS.length;

View file

@ -21,7 +21,6 @@ import net.minecraft.network.chat.TextComponent;
import net.minecraft.sounds.SoundEvents;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.item.ItemStack;
import net.minecraftforge.common.ForgeConfigSpec;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;