From 7d8884b263a7f9f1bfb7aa63bd1f0767f1382bf3 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 22 Aug 2020 18:23:49 +1000 Subject: [PATCH] Also make field volatile --- nms-patches/CommandListenerWrapper.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/CommandListenerWrapper.patch b/nms-patches/CommandListenerWrapper.patch index 538af9e8d7..16ade7a3e9 100644 --- a/nms-patches/CommandListenerWrapper.patch +++ b/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) -> {