mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2025-02-08 00:31:37 +01:00
Fix build error.
This commit is contained in:
parent
0f1882c387
commit
973c45d1ee
@ -634,7 +634,7 @@ public void onPlayerBucketEvent(PlayerBucketEvent event) {
|
||||
return;
|
||||
}
|
||||
} else if (event instanceof PlayerBucketFillEvent) {
|
||||
// check block place
|
||||
// check block break
|
||||
result = GDPermissionManager.getInstance().getFinalPermission(event, location, claim, Flags.BLOCK_BREAK, source, event.getBlockClicked(), player, TrustTypes.BUILDER, true);
|
||||
if (result == Tristate.FALSE) {
|
||||
event.setCancelled(true);
|
||||
|
@ -88,5 +88,6 @@ public class FlagContexts {
|
||||
public static final Context TARGET_TYPE_VEHICLE = new Context(ContextKeys.TARGET, "#vehicle");
|
||||
|
||||
public static final Context USED_ITEM_LAVA_BUCKET = new Context(ContextKeys.USED_ITEM, "minecraft:lava_bucket");
|
||||
public static final Context USED_ITEM_VEHICLE = new Context(ContextKeys.USED_ITEM, "#vehicle");
|
||||
public static final Context USED_ITEM_WATER_BUCKET = new Context(ContextKeys.USED_ITEM, "minecraft:water_bucket");
|
||||
}
|
||||
|
@ -88,5 +88,6 @@ public class FlagContexts {
|
||||
public static final Context TARGET_TYPE_VEHICLE = new Context(ContextKeys.TARGET, "#vehicle");
|
||||
|
||||
public static final Context USED_ITEM_LAVA_BUCKET = new Context(ContextKeys.USED_ITEM, "minecraft:lava_bucket");
|
||||
public static final Context USED_ITEM_VEHICLE = new Context(ContextKeys.USED_ITEM, "#vehicle");
|
||||
public static final Context USED_ITEM_WATER_BUCKET = new Context(ContextKeys.USED_ITEM, "minecraft:water_bucket");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user