Skip to content

Commit

Permalink
We should be able to place blocks up to the limit
Browse files Browse the repository at this point in the history
  • Loading branch information
sarhatabaot committed Nov 7, 2022
1 parent 31acda9 commit b19af7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void onPlace(BlockPlaceEvent event) {
if (plugin.getBlocksConfig().hasLimit(placedType)) {
final Integer limit = plugin.getBlocksConfig().getLimit(placedType);
int amountInChunk = countBlocksInChunk(event.getBlock().getChunk().getChunkSnapshot(), placedType);
if (amountInChunk >= limit) {
if (amountInChunk > limit) {
event.setCancelled(true);

if (plugin.getBlocksConfig().isNotifyMessage()) {
Expand Down

0 comments on commit b19af7d

Please sign in to comment.