Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Jun 5, 2017
1 parent 7bffb5a commit e9b9196
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ public class Record {

private List<Record> records = new ArrayList<Record>();
private List<String> pendingRules = new ArrayList<String>();
private boolean initialized;

public CompTierRegistry () { }

public void initialize () {
initialized = true;

if (StorageDrawers.config.cache.registerExtraCompRules) {
register(new ItemStack(Blocks.CLAY), new ItemStack(Items.CLAY_BALL), 4);
register(new ItemStack(Blocks.SNOW), new ItemStack(Items.SNOWBALL), 4);
Expand Down Expand Up @@ -74,7 +77,7 @@ public boolean register (ItemStack upper, ItemStack lower, int convRate) {
}

public boolean register (String rule) {
if (pendingRules != null) {
if (!initialized) {
pendingRules.add(rule);
return true;
}
Expand Down

0 comments on commit e9b9196

Please sign in to comment.