You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
java.lang.ClassCastException: org.bukkit.craftbukkit.v1_4_6.block.CraftBlockState cannot be cast to org.bukkit.block.Dispenser #2
07:26:50 [SEVERE] Error occurred while enabling MachineFactory v0.1 (Is it up to date?)
java.lang.ClassCastException: org.bukkit.craftbukkit.v1_4_6.block.CraftBlockState cannot be cast to org.bukkit.block.Dispenser
at com.github.MrTwiggy.MachineFactory.MachineObject.initializeInventory(MachineObject.java:116)
at com.github.MrTwiggy.MachineFactory.MachineObject.(MachineObject.java:89)
at com.github.MrTwiggy.MachineFactory.Machines.OreGin.(OreGin.java:65)
at com.github.MrTwiggy.MachineFactory.Managers.OreGinManager.load(OreGinManager.java:113)
at com.github.MrTwiggy.MachineFactory.Managers.MachinesManager.load(MachinesManager.java:249)
at com.github.MrTwiggy.MachineFactory.Managers.MachinesManager.loadManagers(MachinesManager.java:143)
at com.github.MrTwiggy.MachineFactory.Managers.MachinesManager.(MachinesManager.java:49)
at com.github.MrTwiggy.MachineFactory.MachineFactoryPlugin.onEnable(MachineFactoryPlugin.java:79)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugin(CraftServer.java:322)
at org.bukkit.craftbukkit.v1_4_6.CraftServer.enablePlugins(CraftServer.java:304)
at net.minecraft.server.v1_4_6.MinecraftServer.j(MinecraftServer.java:326)
at net.minecraft.server.v1_4_6.MinecraftServer.e(MinecraftServer.java:305)
at net.minecraft.server.v1_4_6.MinecraftServer.a(MinecraftServer.java:264)
at net.minecraft.server.v1_4_6.DedicatedServer.init(DedicatedServer.java:149)
at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:404)
at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
I got this after putting the plugin online, testing it, then switching maps.
Oh, I think I see what happened. You probably started it up, created and OreGin, then when you turned off the server you saved the OreGin(s) to file, and when you switched maps it loaded up and tried to initialize the saved OreGins, but the blocks where the OreGins were were no longer Dispensers and it messed up. I'm fixing it right now and will make a commit soon. Very sorry about that. To quickly fix it, you can just delete the OreGinSaves files in the MachineFactory plugin data folder and then restart the server.
Activity
Ty4Code commentedon Jan 19, 2013
Oh, I think I see what happened. You probably started it up, created and OreGin, then when you turned off the server you saved the OreGin(s) to file, and when you switched maps it loaded up and tried to initialize the saved OreGins, but the blocks where the OreGins were were no longer Dispensers and it messed up. I'm fixing it right now and will make a commit soon. Very sorry about that. To quickly fix it, you can just delete the OreGinSaves files in the MachineFactory plugin data folder and then restart the server.