From 4625e066e822e72d57b11fd1b189278a74ef565a Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 22 Aug 2020 18:23:49 +1000 Subject: [PATCH] Also make field volatile By: md_5 --- paper-server/nms-patches/CommandListenerWrapper.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/CommandListenerWrapper.patch b/paper-server/nms-patches/CommandListenerWrapper.patch index 538af9e8d7..16ade7a3e9 100644 --- a/paper-server/nms-patches/CommandListenerWrapper.patch +++ b/paper-server/nms-patches/CommandListenerWrapper.patch @@ -12,7 +12,7 @@ private final ResultConsumer l; private final ArgumentAnchor.Anchor m; private final Vec2F n; -+ public CommandNode currentCommand; // CraftBukkit ++ public volatile CommandNode currentCommand; // CraftBukkit public CommandListenerWrapper(ICommandListener icommandlistener, Vec3D vec3d, Vec2F vec2f, WorldServer worldserver, int i, String s, IChatBaseComponent ichatbasecomponent, MinecraftServer minecraftserver, @Nullable Entity entity) { this(icommandlistener, vec3d, vec2f, worldserver, i, s, ichatbasecomponent, minecraftserver, entity, false, (commandcontext, flag, j) -> {