STOP!
This commit is contained in:
parent
a1999c739f
commit
4a5f4d62ba
2 changed files with 7 additions and 5 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -63,7 +63,9 @@ public class Hammer {
|
|||
boolean found = false;
|
||||
Iterator<Smashable> smashables = HammerRegistry.rewards.iterator();
|
||||
while (!found && smashables.hasNext()) {
|
||||
|
||||
Smashable reward = smashables.next();
|
||||
if (reward != null && reward.source != null && Block.getBlockFromItem(stack.getItem()) != null)
|
||||
if (reward.source == Block.getBlockFromItem(stack.getItem())) {
|
||||
reward.source = Blocks.air;
|
||||
found = true;
|
||||
|
|
Loading…
Reference in a new issue