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