mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 05:28:59 +00:00
Tested integrations
This commit is contained in:
@@ -31,7 +31,7 @@ public class GriefPreventionBarrel {
|
|||||||
playerData.lastClaim = claim;
|
playerData.lastClaim = claim;
|
||||||
String noContainersReason = claim.allowContainers(player);
|
String noContainersReason = claim.allowContainers(player);
|
||||||
if (noContainersReason != null) {
|
if (noContainersReason != null) {
|
||||||
brewery.msg(player, brewery.languageReader.get("Error_NoBarrelAccess"));
|
brewery.msg(player, brewery.languageReader.get("Error_NoBarrelAccess") + " " + noContainersReason);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,7 +69,12 @@ public class LogBlockBarrel {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
} else {
|
} 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user