mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-11-13 10:33:58 +01:00
Fix npc loaders not having the affectsSpawning flag enabled (#29)
This commit is contained in:
parent
38c2c69281
commit
50653b1904
@ -1,7 +1,7 @@
|
||||
group 'v1_8_R3'
|
||||
|
||||
dependencies {
|
||||
compileOnly "org.spigotmc:v1_8_R3:latest"
|
||||
compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
|
||||
compileOnly project(":API")
|
||||
compileOnly parent
|
||||
}
|
@ -45,6 +45,12 @@ public final class ChunkLoaderNPC_v1_8_R3 extends EntityPlayer implements ChunkL
|
||||
|
||||
fauxSleeping = true;
|
||||
|
||||
try {
|
||||
// Paper
|
||||
affectsSpawning = true;
|
||||
} catch (Throwable ignored) {
|
||||
}
|
||||
|
||||
spawnIn(world);
|
||||
setLocation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user