Hello, I'm using latest 1.20.1 paper build, and I'm getting the NoSuchMethodError when trying to spawn an entity using the method org.bukkit.World.spawn(org.bukkit.Location, java.lang.Class, java.util.function.Consumer)
I have this version of paper in the pom (I dont have any other spigot / paper dependency):
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.20.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
And this is the code I'm trying to run.
location.getWorld().spawn(location, Warden.class, entity -> {
entity.setPersistent(true);
entity.setRemoveWhenFarAway(false);
});
The weird part is that I don't get any error in the IDE, the method exists in the API.
Version: This server is running Paper version git-Paper-196 (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT)
I have this version of paper in the pom (I dont have any other spigot / paper dependency):
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.20.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
And this is the code I'm trying to run.
location.getWorld().spawn(location, Warden.class, entity -> {
entity.setPersistent(true);
entity.setRemoveWhenFarAway(false);
});
The weird part is that I don't get any error in the IDE, the method exists in the API.
Version: This server is running Paper version git-Paper-196 (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT)