Readd dropped CauldronInteraction hunk

This commit is contained in:
Nassim Jahnke
2024-12-15 16:09:49 +01:00
parent ac9ac5e7ea
commit 0895318159
2 changed files with 8 additions and 4 deletions

View File

@@ -38,7 +38,7 @@
}
- public boolean canUse(final S source) {
+ // Paper start
+ // CraftBukkit start
+ public synchronized boolean canUse(final S source) {
+ if (source instanceof CommandSourceStack) {
+ try {
@@ -48,7 +48,7 @@
+ ((CommandSourceStack) source).currentCommand.remove(Thread.currentThread()); // Paper - Thread Safe Vanilla Command permission checking
+ }
+ }
+ // Paper end
+ // CraftBukkit end
return requirement.test(source);
}