mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2024-11-25 12:05:16 +01:00
Tested integrations
This commit is contained in:
parent
9bb5936d0d
commit
6da8bbcb48
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user