All Getter methods for lists/maps in registry now return new copies
This commit is contained in:
parent
d997932306
commit
48622bf2e7
5 changed files with 40 additions and 13 deletions
|
@ -21,7 +21,6 @@ public class AlchemyArrayRecipeRegistry
|
|||
{
|
||||
public static final AlchemyCircleRenderer defaultRenderer = new AlchemyCircleRenderer(new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/BaseArray.png"));
|
||||
|
||||
@Getter
|
||||
private static BiMap<ItemStackWrapper, AlchemyArrayRecipe> recipes = HashBiMap.create();
|
||||
|
||||
/**
|
||||
|
@ -223,4 +222,8 @@ public class AlchemyArrayRecipeRegistry
|
|||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static BiMap<ItemStackWrapper, AlchemyArrayRecipe> getRecipes() {
|
||||
return HashBiMap.create(recipes);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue