Skip to content

Commit f397658

Browse files
committed
Fix reflection change CustomFunctionManager#g -> h
1 parent 5d87e23 commit f397658

File tree

2 files changed

+2
-2
lines changed
  • commandapi-platforms/commandapi-bukkit/commandapi-bukkit-nms/commandapi-bukkit-1.21/src

2 files changed

+2
-2
lines changed

commandapi-platforms/commandapi-bukkit/commandapi-bukkit-nms/commandapi-bukkit-1.21/src/main/java/dev/jorel/commandapi/nms/NMS_1_21_R1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public class NMS_1_21_R1 extends NMS_Common {
229229
entitySelectorUsesSelector = CommandAPIHandler.getField(EntitySelector.class, "p", "usesSelector");
230230
// itemInput = SafeVarHandle.ofOrNull(ItemInput.class, "c", "tag", CompoundTag.class);
231231
// For some reason, MethodHandles fails for this field, but Field works okay
232-
serverFunctionLibraryDispatcher = CommandAPIHandler.getField(ServerFunctionLibrary.class, "g", "dispatcher");
232+
serverFunctionLibraryDispatcher = CommandAPIHandler.getField(ServerFunctionLibrary.class, "h", "dispatcher");
233233

234234
boolean fieldExists;
235235
try {

commandapi-platforms/commandapi-bukkit/commandapi-bukkit-nms/commandapi-bukkit-1.21/src/test/java/SafeReflect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import net.minecraft.world.level.gameevent.EntityPositionSource;
3232

3333
// Spigot-Mapped reflection
34-
@RequireField(in = CustomFunctionManager.class, name = "g", ofType = CommandDispatcher.class)
34+
@RequireField(in = CustomFunctionManager.class, name = "h", ofType = CommandDispatcher.class)
3535
@RequireField(in = EntitySelector.class, name = "p", ofType = boolean.class)
3636
@RequireField(in = SimpleHelpMap.class, name = "helpTopics", ofType = Map.class)
3737
@RequireField(in = EntityPositionSource.class, name = "e", ofType = Either.class)

0 commit comments

Comments
 (0)