mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-11-10 10:09:55 +01:00
Fixed errors on Spigot servers due to missing methods
This commit is contained in:
parent
9f65c62a0c
commit
b5f80816c3
@ -64,9 +64,13 @@ public final class ChunkLoaderNPCImpl extends ServerPlayer implements ChunkLoade
|
|||||||
this.advancements = new DummyPlayerAdvancements(minecraftServer, this);
|
this.advancements = new DummyPlayerAdvancements(minecraftServer, this);
|
||||||
|
|
||||||
SET_GAMEMODE.invoke(this.gameMode, GameType.CREATIVE, null);
|
SET_GAMEMODE.invoke(this.gameMode, GameType.CREATIVE, null);
|
||||||
setLoadViewDistance(2);
|
try {
|
||||||
setTickViewDistance(2);
|
setLoadViewDistance(2);
|
||||||
setSendViewDistance(2);
|
setTickViewDistance(2);
|
||||||
|
setSendViewDistance(2);
|
||||||
|
} catch (Throwable ignored) {
|
||||||
|
// Doesn't exist on Spigot
|
||||||
|
}
|
||||||
|
|
||||||
fauxSleeping = true;
|
fauxSleeping = true;
|
||||||
|
|
||||||
@ -136,7 +140,7 @@ public final class ChunkLoaderNPCImpl extends ServerPlayer implements ChunkLoade
|
|||||||
public class DummyServerGamePacketListenerImpl extends ServerGamePacketListenerImpl {
|
public class DummyServerGamePacketListenerImpl extends ServerGamePacketListenerImpl {
|
||||||
|
|
||||||
DummyServerGamePacketListenerImpl(MinecraftServer minecraftServer, ServerPlayer serverPlayer) {
|
DummyServerGamePacketListenerImpl(MinecraftServer minecraftServer, ServerPlayer serverPlayer) {
|
||||||
super(minecraftServer, new DummyConnection(), serverPlayer, CommonListenerCookie.createInitial(ChunkLoaderNPCImpl.this.gameProfile));
|
super(minecraftServer, new DummyConnection(), serverPlayer, CommonListenerCookie.createInitial(ChunkLoaderNPCImpl.this.getGameProfile()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user