From 8eadef2e35942e7e8d0a2bdecc9b67f65db46daa Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Tue, 24 Dec 2013 08:43:31 -0700 Subject: [PATCH] Minor fixes. --- .../src/me/kaZep/Commands/commandBankEconomy.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java b/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java index c812a70..07917d1 100644 --- a/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java +++ b/BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java @@ -1075,7 +1075,19 @@ public String convertToItemName(String val) { if (found) {break;} } if (!found) { - break; + boolean found2=false; + for (int x=0;x<16;x++) { + for (int yy=1;yy<4;yy++) { + for (int z=0;z<16;z++) { + if (!naturalBlock(p.getWorld().getBlockAt(chunkx*16+x,y+yy,chunkz*16+z).getType())) { + found2=true; + break; + } + } + } + if (!found2) {break;} + } + if (!found2) {break;} } }