Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom crafts causes to initialize spigot legacy material support #89

Open
artur9010 opened this issue May 18, 2021 · 0 comments
Open

Comments

@artur9010
Copy link

UhcCore version: 1.19.2
Minecraft version: 1.16.4/1.16.5

Loading custom crafts causes to initialize spigot legacy material support, that adds additional 5 to 10 seconds to server startup.

Config

custom-crafts:
  'Refil':
    '1': '{"type":"AIR"} {"type":"GOLD_INGOT"} {"type":"AIR"}'
    '2': '{"type":"GOLD_INGOT"} {"type":"APPLE"} {"type":"GOLD_INGOT"}'
    '3': '{"type":"AIR"} {"type":"GOLD_INGOT"} {"type":"AIR"}'
    craft: '{"type":"GOLDEN_APPLE"}'
    default-name: true
    limit: -1

Log:

[18:03:45 INFO]: [UhcCore] Loading plugins/UhcCore/lang.yml
>....
[18:03:45 INFO]: [UhcCore] Loading plugins/UhcCore/config.yml
>....
[18:03:45 INFO]: [UhcCore] Hooked with WorldEdit plugin.
>....
[18:03:45 INFO]: [UhcCore] Hooked with Vault plugin.
>....
[18:03:45 INFO]: [UhcCore] Hooked with ProtocolLib plugin.
>....
[18:03:45 INFO]: [UhcCore] Loading plugins/UhcCore/storage.yml
>....
[18:03:46 INFO]: [UhcCore] Start loading kits
>....
[18:03:46 INFO]: [UhcCore] Loading plugins/UhcCore/kits.yml
>....
[18:03:46 INFO]: [UhcCore] Loaded 0 kits
>....
[18:03:46 INFO]: [UhcCore] Loading banned crafts list
>....
[18:03:46 INFO]: [UhcCore] Loading plugins/UhcCore/crafts.yml
>....
[18:03:46 INFO]: [UhcCore] Removed recipe for minecraft:golden_apple
>....
[18:03:46 INFO]: [UhcCore] Loading custom crafts
>....
[18:03:46 INFO]: [UhcCore] Loading plugins/UhcCore/crafts.yml
>....
[18:03:46 INFO]: [UhcCore] Loading custom craft Refil
>....
[18:03:46 WARN]: Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
>....
[18:03:46 WARN]: java.lang.Exception
>....
[18:03:46 WARN]: 	at org.bukkit.craftbukkit.v1_16_R3.legacy.CraftLegacy.<clinit>(CraftLegacy.java:259)
>....
[18:03:46 WARN]: 	at org.bukkit.craftbukkit.v1_16_R3.util.CraftMagicNumbers.toLegacy(CraftMagicNumbers.java:192)
>....
[18:03:46 WARN]: 	at org.bukkit.inventory.ItemStack.getData(ItemStack.java:176)
>....
[18:03:46 WARN]: 	at com.gmail.val59000mc.customitems.Craft.register(Craft.java:101)
>....
[18:03:46 WARN]: 	at com.gmail.val59000mc.customitems.Craft.<init>(Craft.java:44)
>....
[18:03:46 WARN]: 	at com.gmail.val59000mc.customitems.CraftsManager.loadCrafts(CraftsManager.java:144)
>....
[18:03:46 WARN]: 	at com.gmail.val59000mc.game.GameManager.loadConfig(GameManager.java:347)
>....
[18:03:46 WARN]: 	at com.gmail.val59000mc.game.GameManager.loadNewGame(GameManager.java:228)
>....
[18:03:46 WARN]: 	at com.gmail.val59000mc.UhcCore.lambda$onEnable$0(UhcCore.java:25)
>....
[18:03:46 WARN]: 	at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100)
>....
[18:03:46 WARN]: 	at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468)
>....
[18:03:46 WARN]: 	at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:953)
>....
[18:03:46 WARN]: 	at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:178)
>....
[18:03:46 WARN]: 	at java.base/java.lang.Thread.run(Thread.java:832)
>....
[18:03:51 INFO]: [UhcCore] Refil custom craft registered
>....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant