remove dupe protection
This commit is contained in:
parent
a2d2f71712
commit
68ac1f31d8
3 changed files with 1 additions and 8 deletions
|
|
@ -5,7 +5,6 @@ import net.minecraftforge.common.ForgeConfigSpec;
|
||||||
public class Config {
|
public class Config {
|
||||||
public static final ForgeConfigSpec SPEC;
|
public static final ForgeConfigSpec SPEC;
|
||||||
public static final ForgeConfigSpec.BooleanValue VAULT_SCREEN_BUTTON;
|
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_X;
|
||||||
public static final ForgeConfigSpec.IntValue BUTTON_Y;
|
public static final ForgeConfigSpec.IntValue BUTTON_Y;
|
||||||
public static final ForgeConfigSpec.IntValue MAX_LEVEL_OVERRIDE;
|
public static final ForgeConfigSpec.IntValue MAX_LEVEL_OVERRIDE;
|
||||||
|
|
@ -32,9 +31,6 @@ public class Config {
|
||||||
builder.pop();
|
builder.pop();
|
||||||
|
|
||||||
builder.push("DEBUG");
|
builder.push("DEBUG");
|
||||||
ALLOW_DUPE = builder
|
|
||||||
.comment("allow duplicate modifiers")
|
|
||||||
.define("allowDupe", false);
|
|
||||||
QOL_HUNTERS_CONFLICT_RESOLUTION = builder
|
QOL_HUNTERS_CONFLICT_RESOLUTION = builder
|
||||||
.comment("QOL Hunters conflict resolution")
|
.comment("QOL Hunters conflict resolution")
|
||||||
.define("QOLHuntersConflictResolution", true);
|
.define("QOLHuntersConflictResolution", true);
|
||||||
|
|
|
||||||
|
|
@ -107,9 +107,7 @@ public class Modifiers {
|
||||||
|
|
||||||
full.append(modComp);
|
full.append(modComp);
|
||||||
|
|
||||||
if (Config.ALLOW_DUPE.get() || true|| !(componentList.get(componentList.size() - 1).getString()).equals(full.getString())) {
|
componentList.add(full);
|
||||||
componentList.add(full);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// more than 7 groups is a bit crazy, but just in case
|
// more than 7 groups is a bit crazy, but just in case
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ import net.minecraft.network.chat.TextComponent;
|
||||||
import net.minecraft.sounds.SoundEvents;
|
import net.minecraft.sounds.SoundEvents;
|
||||||
import net.minecraft.world.entity.player.Inventory;
|
import net.minecraft.world.entity.player.Inventory;
|
||||||
import net.minecraft.world.item.ItemStack;
|
import net.minecraft.world.item.ItemStack;
|
||||||
import net.minecraftforge.common.ForgeConfigSpec;
|
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.Shadow;
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue