This commit is contained in:
jaredlll08 2015-02-03 22:21:23 +02:00
parent a1999c739f
commit 4a5f4d62ba
2 changed files with 7 additions and 5 deletions

View file

@ -48,7 +48,7 @@ public class Commands {
MineTweakerAPI.server.addMineTweakerCommand("lexiconPages", new String[] { "/minetweaker lexiconPages", "/minetweaker lexiconPages [ENTRY]", " Outputs a list of lexicon pages for the entry" }, new LexiconPageLogger());
MineTweakerAPI.server.addMineTweakerCommand("botaniaBrews", new String[] { "/minetweaker botaniaBrews", " Outputs a list of keys for botania brews" }, new BotaniaBrewLogger());
MineTweakerAPI.server.addMineTweakerCommand("lexiconKnowledgeTypes", new String[] { "/minetweaker lexiconKnowledgeTypes", " Outputs a list of keys for lexicon knowledge types" }, new LexiconKnowledgeTypesLogger());
MineTweakerAPI.server.addMineTweakerCommand("botaniaOrchids", new String[] { "/minetweaker botaniaOrchids", " Outputs a list of keys for botania orchid weights" }, new BotaniaOrchidLogger());
MineTweakerAPI.server.addMineTweakerCommand("botaniaOrchid", new String[] { "/minetweaker botaniaOrchid", " Outputs a list of keys for botania orchid weights" }, new BotaniaOrchidLogger());
}

View file

@ -63,11 +63,13 @@ public class Hammer {
boolean found = false;
Iterator<Smashable> smashables = HammerRegistry.rewards.iterator();
while (!found && smashables.hasNext()) {
Smashable reward = smashables.next();
if (reward.source == Block.getBlockFromItem(stack.getItem())) {
reward.source = Blocks.air;
found = true;
}
if (reward != null && reward.source != null && Block.getBlockFromItem(stack.getItem()) != null)
if (reward.source == Block.getBlockFromItem(stack.getItem())) {
reward.source = Blocks.air;
found = true;
}
}
// for (Smashable r : HammerRegistry.rewards.) {