Solved NoSuchMethod on a server

Discussion in 'Spigot Plugin Development' started by Stellrow, Mar 20, 2020.

Thread Status:
Not open for further replies.
  1. So just got a reply about one of my resources throwing the nosuchmethod error
    Code (Text):
    java.lang.NoSuchMethodError: org.bukkit.Location.getNearbyLivingEntities(D)Ljava/util/Collection;
    Even thought i created it on 1.14.4,how would this even happen?
    (Note that it's running paper)

    Fixed by replacing with the original 1.14.4 and replacing the code
    Code (Text):
    for(Entity entity : loc.getWorld().getNearbyEntities(loc, 1, 2, 1)){
    instead of simply
    Code (Text):
    loc.getNearbyLivingEntities(..)
     
    #1 Stellrow, Mar 20, 2020
    Last edited: Mar 20, 2020
Thread Status:
Not open for further replies.