Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Commit 1b6cfb4

Browse files
committed
Fix block access checking when breaking block
1 parent 3af9cbe commit 1b6cfb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BlocksHub-GriefPrevention/src/org/primesoft/blockshub/accessors/bukkit/griefPrevention/GriefPreventionAc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public boolean canPlace(IPlayer player, IWorld world, Vector location,
161161

162162
Location l = new Location(bWorld, location.getX(), location.getY(), location.getZ());
163163

164-
if (airOld) {
164+
if (!airOld) {
165165
if (m_griefPrevention.allowBreak(bukkitPlayer, new TypeOnlyBlock(blockOld), l) != null) {
166166
return false;
167167
}

0 commit comments

Comments
 (0)