Skip to content

java.lang.ClassCastException: org.bukkit.craftbukkit.v1_4_6.block.CraftBlockState cannot be cast to org.bukkit.block.Dispenser #2

Open

Description

@ttk2

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.

Activity

  1. Ty4Code commented on Jan 19, 2013

    @Ty4Code
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions