Depreciated CreatureSpawn Question

Discussion in 'Plugin Development' started by tappestry, Dec 20, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    tappestry

    Hi I'm getting an error with this method, I've done about an hour of google research but I can't find anything and was hoping someone could help if they have run into this before.

    The problem I am having is with the return statement:

    Code:
      public Entity spawn(World world, Location loc) {
        Entity e = world.spawnEntity(loc, type);
        return spawn(e);
      }
    Thanks!
     
  2. Offline

    gomeow

    Cast to Entity when you return, and I would change it to spawnEntity()
     
Thread Status:
Not open for further replies.

Share This Page