diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-10-24 05:07:27 +0100 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-10-24 05:07:27 +0100 |
commit | 9ba6d563d1b69bc8aa88d48754c273dae77aa713 (patch) | |
tree | a3b561245d42697971dcf8232991667b5f88198c /src/Java/gtPlusPlus/core/slots | |
parent | 1fe377e10ef32f3e54e0d152f64c67eaebef1993 (diff) | |
download | GT5-Unofficial-9ba6d563d1b69bc8aa88d48754c273dae77aa713.tar.gz GT5-Unofficial-9ba6d563d1b69bc8aa88d48754c273dae77aa713.tar.bz2 GT5-Unofficial-9ba6d563d1b69bc8aa88d48754c273dae77aa713.zip |
% Tried to adjust the name of IC2 Hot Water.
$ Fixed OreDicting ore Sodium Hydroxide if GT dusts are detected.
$ Fixed bad oredict look-up for RP1 cell.
$ Rewrote how GT++ Materials look for existing fluids and cells during generation, hopefully this didn't break any existing cells or fluids. (Please investigate log after loading a world)
Diffstat (limited to 'src/Java/gtPlusPlus/core/slots')
-rw-r--r-- | src/Java/gtPlusPlus/core/slots/SlotNoInputLogging.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/core/slots/SlotNoInputLogging.java b/src/Java/gtPlusPlus/core/slots/SlotNoInputLogging.java index 42bc7ce346..762714ac94 100644 --- a/src/Java/gtPlusPlus/core/slots/SlotNoInputLogging.java +++ b/src/Java/gtPlusPlus/core/slots/SlotNoInputLogging.java @@ -2,6 +2,7 @@ package gtPlusPlus.core.slots; import gtPlusPlus.api.objects.Logger; import gtPlusPlus.core.util.minecraft.ItemUtils; +import net.minecraft.block.Block; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; @@ -12,13 +13,23 @@ public class SlotNoInputLogging extends SlotNoInput { public SlotNoInputLogging(final IInventory inventory, final int index, final int x, final int y) { super(inventory, index, x, y); aSlotIndex = index; + Logger.INFO("Slot "+index+" is doing logging"); } @Override public boolean isItemValid(final ItemStack itemstack) { if (ItemUtils.checkForInvalidItems(itemstack)) { Logger.INFO("Tried Inserting "+ItemUtils.getItemName(itemstack)+" into slot "+aSlotIndex); - } + Block b = Block.getBlockFromItem(itemstack.getItem()); + Logger.INFO(""+itemstack.getUnlocalizedName()); + if (b != null) { + Logger.INFO(""+b.getLocalizedName()); + Logger.INFO(""+b.getUnlocalizedName()); + } + } + else { + Logger.INFO("Bad Itemstack"); + } return false; } |