Fix Brigadier suggestions for KeyedWorldArgument

This commit is contained in:
Jason Penilla 2021-08-31 13:51:04 -07:00 committed by Jason
parent 4447ab451f
commit b4492e9bc5
3 changed files with 48 additions and 15 deletions

View file

@ -49,7 +49,7 @@ final class PaperBrigadierMapper<C> {
final Class<?> keyed = CraftBukkitReflection.findClass("org.bukkit.Keyed");
if (keyed != null && keyed.isAssignableFrom(World.class)) {
mapper.mapSimpleNMS(new TypeToken<KeyedWorldArgument.Parser<C>>() {
}, "resource_location");
}, "resource_location", true);
}
}