diff --git a/src/com/dre/brewery/integration/GriefPreventionBarrel.java b/src/com/dre/brewery/integration/GriefPreventionBarrel.java index 421c42f..85edf76 100644 --- a/src/com/dre/brewery/integration/GriefPreventionBarrel.java +++ b/src/com/dre/brewery/integration/GriefPreventionBarrel.java @@ -31,7 +31,7 @@ public class GriefPreventionBarrel { playerData.lastClaim = claim; String noContainersReason = claim.allowContainers(player); if (noContainersReason != null) { - brewery.msg(player, brewery.languageReader.get("Error_NoBarrelAccess")); + brewery.msg(player, brewery.languageReader.get("Error_NoBarrelAccess") + " " + noContainersReason); return false; } } diff --git a/src/com/dre/brewery/integration/LogBlockBarrel.java b/src/com/dre/brewery/integration/LogBlockBarrel.java index f3aaa85..4d368a8 100644 --- a/src/com/dre/brewery/integration/LogBlockBarrel.java +++ b/src/com/dre/brewery/integration/LogBlockBarrel.java @@ -69,7 +69,12 @@ public class LogBlockBarrel { e.printStackTrace(); } } else { - consumer.queueChestAccess(Actor.actorFromEntity(player), loc, loc.getBlock().getBlockData(), item, false); + ItemStack i2 = item; + if (item.getAmount() < 0) { + i2 = item.clone(); + i2.setAmount(Math.abs(item.getAmount())); + } + consumer.queueChestAccess(Actor.actorFromEntity(player), loc, loc.getBlock().getBlockData(), i2, item.getAmount() < 0); } } }