mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Match class exactly for flower bag inventory
This commit is contained in:
1 parent
74c1bb464f
commit
2c6f3f8f22
1 file changed
+1
-1
@@ -68,7 +68,7 @@ public class ItemFlowerBag extends ItemMod {
|
||||
public boolean isItemValid(int slot, @Nonnull ItemStack stack) {
|
||||
Block blk = Block.getBlockFromItem(stack.getItem());
|
||||
return !stack.isEmpty()
|
||||
&& blk instanceof BlockModFlower
|
||||
&& blk.getClass() == BlockModFlower.class
|
||||
&& slot == ((BlockModFlower) blk).color.getId();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user