mcgrizzz / ProRecipes

It's up now.
GNU General Public License v2.0
11 stars 13 forks source link

Recipe Blacklist is broken in ProRecipes 2.0.2 #12

Closed GrandeMalum closed 6 years ago

GrandeMalum commented 6 years ago

Hello there. For some reason "recipeBlacklist" option from config.yml breaks the whole plugin. I was trying to disable vanilla tnt recipe, but it not worked. Look at my configs:

checkUpdate: false
spigot: true
showPrompts: true
recipeBlacklist: 
- tnt!0

Also plugin shows error on server start up:

[10:32:02 INFO]: [ProRecipes] Enabling ProRecipes v2.0.2
[10:32:02 INFO]: [ProRecipes] Version detected for NBTTag support!: v1_12_R1
[10:32:02 INFO]: Thank you for purchasing ProRecipes! 
Any comments or concerns message me on spigot!
[10:32:02 ERROR]: Error occurred while enabling ProRecipes v2.0.2 (Is it up to date?)
java.lang.UnsupportedOperationException: null
    at com.google.common.collect.UnmodifiableIterator.remove(UnmodifiableIterator.java:46) ~[craftbukkit.jar:git-Spigot-c3093ef-7e94e65]
    at org.bukkit.craftbukkit.v1_12_R1.inventory.RecipeIterator.remove(RecipeIterator.java:51) ~[craftbukkit.jar:git-Spigot-c3093ef-7e94e65]
    at mc.mcgrizzz.prorecipes.ProRecipes.removeBlacklist(ProRecipes.java:352) ~[?:?]
    at mc.mcgrizzz.prorecipes.ProRecipes.onEnable(ProRecipes.java:191) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[craftbukkit.jar:git-Spigot-c3093ef-7e94e65]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [craftbukkit.jar:git-Spigot-c3093ef-7e94e65]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403) [craftbukkit.jar:git-Spigot-c3093ef-7e94e65]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:381) [craftbukkit.jar:git-Spigot-c3093ef-7e94e65]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:330) [craftbukkit.jar:git-Spigot-c3093ef-7e94e65]
    at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:422) [craftbukkit.jar:git-Spigot-c3093ef-7e94e65]
    at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:383) [craftbukkit.jar:git-Spigot-c3093ef-7e94e65]
    at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:338) [craftbukkit.jar:git-Spigot-c3093ef-7e94e65]
    at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272) [craftbukkit.jar:git-Spigot-c3093ef-7e94e65]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [craftbukkit.jar:git-Spigot-c3093ef-7e94e65]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
TrademarkTM commented 6 years ago

Having the same problem here. Hope this can be fixed soon!

[17:28:44] [Server thread/ERROR]: Error occurred while enabling ProRecipes v2.0.2 (Is it up to date?)
java.lang.UnsupportedOperationException: null
    at com.google.common.collect.UnmodifiableIterator.remove(UnmodifiableIterator.java:46) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-fb414fe]
    at org.bukkit.craftbukkit.v1_12_R1.inventory.RecipeIterator.remove(RecipeIterator.java:51) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-fb414fe]
    at mc.mcgrizzz.prorecipes.ProRecipes.removeBlacklist(ProRecipes.java:350) ~[?:?]
    at mc.mcgrizzz.prorecipes.ProRecipes.onEnable(ProRecipes.java:191) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-fb414fe]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [spigot-1.12.2.jar:git-Spigot-4bd94dc-fb414fe]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403) [spigot-1.12.2.jar:git-Spigot-4bd94dc-fb414fe]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:381) [spigot-1.12.2.jar:git-Spigot-4bd94dc-fb414fe]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:330) [spigot-1.12.2.jar:git-Spigot-4bd94dc-fb414fe]
    at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:422) [spigot-1.12.2.jar:git-Spigot-4bd94dc-fb414fe]
    at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:383) [spigot-1.12.2.jar:git-Spigot-4bd94dc-fb414fe]
    at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:338) [spigot-1.12.2.jar:git-Spigot-4bd94dc-fb414fe]
    at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272) [spigot-1.12.2.jar:git-Spigot-4bd94dc-fb414fe]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot-1.12.2.jar:git-Spigot-4bd94dc-fb414fe]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_131

Thanks.

mcgrizzz commented 6 years ago

1.12 not yet supported, please check back in a day or two.