Added getNewCopy() to Ritual to allow tiles to hold their own copy of a Ritual. Created caching in AreaDescriptor for faster BlockPos access.
This commit is contained in:
parent
69355f76fb
commit
d7a96c061d
7 changed files with 72 additions and 14 deletions
|
@ -43,7 +43,8 @@ public class RitualRegistry
|
|||
|
||||
public static Ritual getRitualForId(String id)
|
||||
{
|
||||
return registry.get(id);
|
||||
Ritual ritual = registry.get(id);
|
||||
return ritual != null ? ritual.getNewCopy() : null;
|
||||
}
|
||||
|
||||
public static String getIdForRitual(Ritual ritual)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue