From 620992dd574daef42e1eef17e720c4514f539960 Mon Sep 17 00:00:00 2001 From: Kenzie Togami Date: Sat, 1 Jun 2019 01:51:06 -0700 Subject: [PATCH] Update Piston to 0.4.0 for bugfixes --- .../sk89q/worldedit/command/util/PermissionCondition.java | 5 +++-- worldedit-libs/build.gradle | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/util/PermissionCondition.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/util/PermissionCondition.java index 48b6acc16..a3ba83c6f 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/util/PermissionCondition.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/util/PermissionCondition.java @@ -22,6 +22,7 @@ package com.sk89q.worldedit.command.util; import com.sk89q.worldedit.extension.platform.Actor; import org.enginehub.piston.Command; import org.enginehub.piston.CommandParameters; +import org.enginehub.piston.inject.InjectedValueAccess; import org.enginehub.piston.inject.Key; import java.util.Set; @@ -41,8 +42,8 @@ public final class PermissionCondition implements Command.Condition { } @Override - public boolean satisfied(CommandParameters parameters) { - return parameters.injectedValue(ACTOR_KEY) + public boolean satisfied(InjectedValueAccess context) { + return context.injectedValue(ACTOR_KEY) .map(actor -> permissions.stream().anyMatch(actor::hasPermission)) .orElse(false); } diff --git a/worldedit-libs/build.gradle b/worldedit-libs/build.gradle index a1954e09d..4f07f5aae 100644 --- a/worldedit-libs/build.gradle +++ b/worldedit-libs/build.gradle @@ -90,13 +90,14 @@ configure(subprojects + project("core:ap")) { def textExtrasVersion = "3.0.2" project("core") { - def textVersion = "3.0.0" - def pistonVersion = '0.3.0' + def textVersion = "3.0.1" + def pistonVersion = '0.4.0' dependencies { shade "net.kyori:text-api:$textVersion" shade "net.kyori:text-serializer-gson:$textVersion" shade "net.kyori:text-serializer-legacy:$textVersion" + shade "net.kyori:text-serializer-plain:$textVersion" shade('com.sk89q:jchronic:0.2.4a') { exclude(group: "junit", module: "junit") }