Fixed Mana Spreaders dropping wool every time when broken. Closes #744

This commit is contained in:
Lizbeth Rika committed 2015-04-12 14:16:23 +01:00
1 parent dd0f3f8bc0
commit 9ae4edd963
1 file changed
+2 -2
@@ -188,9 +188,9 @@ public class BlockSpreader extends BlockModContainer implements IWandable, IWand
if (inv != null) {
for (int j1 = 0; j1 < inv.getSizeInventory() + 1; ++j1) {
ItemStack itemstack = j1 >= inv.getSizeInventory() ? new ItemStack(Blocks.wool, 1, inv.paddingColor) : inv.getStackInSlot(j1);
ItemStack itemstack = j1 >= inv.getSizeInventory() ? (inv.paddingColor == -1 ? null : new ItemStack(Blocks.wool, 1, inv.paddingColor)) : inv.getStackInSlot(j1);
if (itemstack != null && itemstack.getItemDamage() != -1) {
if(itemstack != null) {
float f = random.nextFloat() * 0.8F + 0.1F;
float f1 = random.nextFloat() * 0.8F + 0.1F;
EntityItem entityitem;