Its right

This commit is contained in:
Daniel Mills 2021-08-04 18:32:02 -04:00
parent f640abda91
commit 6e369ea787
3 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ import com.volmit.iris.engine.object.biome.LoaderBiome;
import com.volmit.iris.engine.object.dimensional.LoaderDimension;
import com.volmit.iris.engine.object.loot.IrisLootReference;
import com.volmit.iris.engine.object.loot.LoaderLootTable;
import com.volmit.iris.engine.object.loot.LootMode;
import com.volmit.iris.engine.object.loot.IrisLootMode;
import com.volmit.iris.engine.object.meta.InventorySlotType;
import com.volmit.iris.engine.object.regional.LoaderRegion;
import com.volmit.iris.util.hunk.Hunk;
@ -316,7 +316,7 @@ public interface Engine extends DataProvider, Fallible, GeneratorAccess, LootPro
@Override
default void injectTables(KList<LoaderLootTable> list, IrisLootReference r) {
if (r.getMode().equals(LootMode.CLEAR) || r.getMode().equals(LootMode.REPLACE)) {
if (r.getMode().equals(IrisLootMode.CLEAR) || r.getMode().equals(IrisLootMode.REPLACE)) {
list.clear();
}

View File

@ -21,7 +21,7 @@ package com.volmit.iris.engine.object.loot;
import com.volmit.iris.engine.object.annotations.Desc;
@Desc("A loot mode is used to describe what to do with the existing loot layers before adding this loot. Using ADD will simply add this table to the building list of tables (i.e. add dimension tables, region tables then biome tables). By using clear or replace, you remove the parent tables before and add just your tables.")
public enum LootMode {
public enum IrisLootMode {
@Desc("Add to the existing parent loot tables")
ADD,
@Desc("Clear all loot tables then add this table")

View File

@ -37,7 +37,7 @@ import lombok.experimental.Accessors;
@Data
public class IrisLootReference {
@Desc("Add = add on top of parent tables, Replace = clear first then add these. Clear = Remove all and dont add loot from this or parent.")
private LootMode mode = LootMode.ADD;
private IrisLootMode mode = IrisLootMode.ADD;
@RegistryListResource(LoaderLootTable.class)
@ArrayType(min = 1, type = String.class)