fix planter robot filtering random items as reeds, fixes #2660

This commit is contained in:
Hea3veN 2015-04-23 23:36:42 -03:00 committed by asiekierka
parent 4a72ddc20f
commit 1e9e3f0b02

View file

@ -13,6 +13,7 @@ import java.util.Collection;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemReed;
import net.minecraft.item.ItemStack;
@ -169,7 +170,7 @@ public class BoardRobotPlanter extends RedstoneBoardRobot {
private static class ReedFilter implements IStackFilter {
@Override
public boolean matches(ItemStack stack) {
return stack.getItem() instanceof ItemReed;
return stack.getItem() == Items.reeds;
}
}