World.createEntity(location, EntityType.MINECART_COMMAND) doesn't summon a command minecart.

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:

      OS: linux
      jvm: 1.9

    • none

      I'm using the bukkit API to summon a command minecart. However it summon a normal ridable minecart instead. When I inspect the craftbukkit code, I found it doesn't even create an command minecart instance!

      ...
              } else if (Minecart.class.isAssignableFrom(clazz)) {
                  if (PoweredMinecart.class.isAssignableFrom(clazz)) {
                      entity = new EntityMinecartFurnace(world, x, y, z);
                  } else if (StorageMinecart.class.isAssignableFrom(clazz)) {
                      entity = new EntityMinecartChest(world, x, y, z);
                  } else if (ExplosiveMinecart.class.isAssignableFrom(clazz)) {
                      entity = new EntityMinecartTNT(world, x, y, z);
                  } else if (HopperMinecart.class.isAssignableFrom(clazz)) {
                      entity = new EntityMinecartHopper(world, x, y, z);
                  } else if (SpawnerMinecart.class.isAssignableFrom(clazz)) {
                      entity = new EntityMinecartMobSpawner(world, x, y, z);
                  } else { // Default to rideable minecart for pre-rideable compatibility
                      entity = new EntityMinecartRideable(world, x, y, z);
                  }
      ...
      

      I am confused with this 'pre-ridable compatibility', why should there're be such compatibility? (Is the API up to date?)

            Assignee:
            Unassigned
            Reporter:
            mukiu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: