Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-4224

block.CraftBlockState cannot be cast to org.bukkit.block.Skull

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • None
    • I am using Java 8 and Windows 10

    • This server is running CraftBukkit version git-Spigot-69774b3-671581e (MC: 1.13) (Implementing API version 1.13-R0.1-SNAPSHOT)
    • SkullTest
    • Yes

      Hey, I have found a problem with legacy. I have a plugin which sets a skull block in a player's position. This skull is well generated in 1.12.2 but when I use the same plugin in 1.13 it doesnt work. I will attach code, console error and a small reproduction plugin in which with just using /skulltest you will notice what is going wrong.

      Console Error: https://paste.md-5.net/fotewixovo.profile

      Command Code: https://paste.md-5.net/fimehivoca.avrasm

      The line giving error is this one: Skull skull = (Skull) loc.getBlock().getState();

       

      Aparently the plugin in 1.13 cant get the state of that skull block. Nothing to reproduce, just use the command /skulltest if you want to see, if not, you have the ConsoleError.

       

      Wish this helps you to keep improving the amazing Legacy system you made and to let skull plugins keep alive!

       

      Thank you. Wish I have been clear, if not, sorry and dont hesitate to ask.

            Unassigned Unassigned
            xtomyserrax xtomyserrax
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: