mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
Fix withdrawing from brewery taking two items at a time
This commit is contained in:
1 parent
a144f4fb29
commit
0b526c1b31
1 file changed
+3
-1
@@ -87,8 +87,10 @@ public class BlockBrewery extends BlockMod implements ILexiconable, IWandHUD {
|
||||
TileBrewery brew = (TileBrewery) world.getTileEntity(pos);
|
||||
|
||||
if(player.isSneaking()) {
|
||||
if(brew.recipe == null && !state.getValue(BotaniaStateProps.POWERED))
|
||||
if(brew.recipe == null && !state.getValue(BotaniaStateProps.POWERED)) {
|
||||
InventoryHelper.withdrawFromInventory(brew, player);
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
ItemStack stack = player.getHeldItem(hand);
|
||||
if(!stack.isEmpty())
|
||||
|
||||
Reference in new issue
Block a user