Mezy / UhcCore

Automates UHC games on a dedicated 1.8.8 - 1.17 server
https://www.spigotmc.org/resources/uhccore-automated-uhc-for-minecraft-1-8-1-14.47572/
GNU General Public License v3.0
104 stars 72 forks source link

Custom crafts causes to initialize spigot legacy material support #89

Open artur9010 opened 3 years ago

artur9010 commented 3 years ago

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
>....