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
Utility.isDroppedReinforcementBlock bad enum value #103
Comments
Uh what lol. Did we lose trapped_chest as an enum? |
We did lose LOCKED_CHEST, but that was an April Fool's build block anyway. |
Looks like I just need to remove this line: https://github.com/Civcraft/Citadel/blob/master/src/vg/civcraft/mc/citadel/Utility.java#L491 Looks like it won't break anything though as it does what it is supposed to. |
I'd strongly recommend just adding another catch(IllegalArgumentException iae) {} to deal with this specific, "valid" exception, and leave your catch-all as-is. |
Ah smart. Will do. |
I think the bigger problem is where did this bogus lore come from? I'd rather not have some arbitrarily set value being used to dictate reinforcement material. |
It was most likely someone placing a block that had lore on it. |
Yes, so where did the lore come from? Looks unrecognizable to me. On Thu, May 28, 2015 at 1:48 PM, rourke750 notifications@github.com wrote:
|
Someone most likely placed a bastion without ctf. Bastions when created On Thu, May 28, 2015 at 4:55 PM, erocs notifications@github.com wrote:
|
so we don't parse out bad lore before doing anything? Sounds like an issue, On Thu, May 28, 2015 at 3:58 PM rourke750 notifications@github.com wrote:
|
on civtest. On Thu, May 28, 2015 at 7:42 PM rourke750 notifications@github.com wrote:
|
statged for tmorrow On Thu, May 28, 2015 at 7:42 PM justin kilpatrick <
|
2015-05-28 13:50:21 [WARN] java.lang.IllegalArgumentException: No enum constant org.bukkit.Material.§o§&§&§&§r§i§t§e§m§&§&§&§r§3§8§3§&§&§&§r§9§5§&§&§&
§r§1§&§&§&§r§&§&§&§r§&§&§&§r§0§&§&§&§r§&§&§&§r§&§&§&§r§&§&§&§r§&§&§&§r§r
2015-05-28 13:50:21 [WARN] at java.lang.Enum.valueOf(Enum.java:238)
2015-05-28 13:50:21 [WARN] at org.bukkit.Material.valueOf(Material.java:1)
2015-05-28 13:50:21 [WARN] at vg.civcraft.mc.citadel.Utility.isDroppedReinforcementBlock(Utility.java:461)
2015-05-28 13:50:21 [WARN] at vg.civcraft.mc.citadel.listener.BlockListener.onFortificationMode(BlockListener.java:85)
2015-05-28 13:50:21 [WARN] at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source)
2015-05-28 13:50:21 [WARN] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2015-05-28 13:50:21 [WARN] at java.lang.reflect.Method.invoke(Method.java:497)
2015-05-28 13:50:21 [WARN] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
2015-05-28 13:50:21 [WARN] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
2015-05-28 13:50:21 [WARN] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
2015-05-28 13:50:21 [WARN] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
2015-05-28 13:50:21 [WARN] at org.bukkit.craftbukkit.v1_8_R2.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:126)
2015-05-28 13:50:21 [WARN] at net.minecraft.server.v1_8_R2.ItemStack.placeItem(ItemStack.java:157)
2015-05-28 13:50:21 [WARN] at net.minecraft.server.v1_8_R2.PlayerInteractManager.interact(PlayerInteractManager.java:503)
2015-05-28 13:50:21 [WARN] at net.minecraft.server.v1_8_R2.PlayerConnection.a(PlayerConnection.java:740)
2015-05-28 13:50:21 [WARN] at net.minecraft.server.v1_8_R2.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:52)
2015-05-28 13:50:21 [WARN] at net.minecraft.server.v1_8_R2.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1)
2015-05-28 13:50:21 [WARN] at net.minecraft.server.v1_8_R2.PlayerConnectionUtils$1.run(SourceFile:13)
2015-05-28 13:50:21 [WARN] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
2015-05-28 13:50:21 [WARN] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2015-05-28 13:50:21 [WARN] at net.minecraft.server.v1_8_R2.SystemUtils.a(SourceFile:60)
2015-05-28 13:50:21 [WARN] at net.minecraft.server.v1_8_R2.MinecraftServer.A(MinecraftServer.java:710)
2015-05-28 13:50:21 [WARN] at net.minecraft.server.v1_8_R2.DedicatedServer.A(DedicatedServer.java:368)
2015-05-28 13:50:21 [WARN] at net.minecraft.server.v1_8_R2.MinecraftServer.z(MinecraftServer.java:651)
2015-05-28 13:50:21 [WARN] at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:554)
2015-05-28 13:50:21 [WARN] at java.lang.Thread.run(Thread.java:745)
The text was updated successfully, but these errors were encountered: