mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2025-02-04 23:41:29 +01:00
Updated 1.17 support be compiled with Paper
This commit is contained in:
parent
a787fdd72a
commit
1cea49c111
@ -7,7 +7,7 @@ java {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly "org.spigotmc:v1_17_R1:latest"
|
||||
compileOnly "org.spigotmc:v1_17_R1-Paper:latest"
|
||||
compileOnly project(":API")
|
||||
compileOnly parent
|
||||
}
|
@ -68,11 +68,6 @@ public final class ChunkLoaderNPC_v1_17_R1 extends EntityPlayer implements Chunk
|
||||
}
|
||||
|
||||
private static void removePlayer(WorldServer worldServer, EntityPlayer entityPlayer){
|
||||
// Chunk currentChunk = entityPlayer.getCurrentChunk();
|
||||
// if (currentChunk != null)
|
||||
// currentChunk.b(entityPlayer);
|
||||
// TODO: Paper
|
||||
|
||||
worldServer.a(entityPlayer, RemovalReason.d);
|
||||
}
|
||||
|
||||
|
@ -210,12 +210,6 @@ public final class NMSAdapter_v1_17_R1 implements NMSAdapter {
|
||||
|
||||
loaderBlock = world.getType(blockPosition).getBlock();
|
||||
|
||||
// try {
|
||||
// // Not a method of Spigot - fixes https://github.com/OmerBenGera/WildLoaders/issues/2
|
||||
// setCurrentChunk(world.getChunkAtWorldCoords(blockPosition));
|
||||
// }catch (Throwable ignored){}
|
||||
// TODO: Paper
|
||||
|
||||
if(!this.chunkLoader.isInfinite()) {
|
||||
long timeLeft = chunkLoader.getTimeLeft();
|
||||
|
||||
@ -311,13 +305,8 @@ public final class NMSAdapter_v1_17_R1 implements NMSAdapter {
|
||||
|
||||
}
|
||||
|
||||
private static class TileEntityChunkLoaderTicker implements TickingBlockEntity{
|
||||
|
||||
private final TileEntityChunkLoader tileEntityChunkLoader;
|
||||
|
||||
TileEntityChunkLoaderTicker(TileEntityChunkLoader tileEntityChunkLoader){
|
||||
this.tileEntityChunkLoader = tileEntityChunkLoader;
|
||||
}
|
||||
private record TileEntityChunkLoaderTicker(
|
||||
TileEntityChunkLoader tileEntityChunkLoader) implements TickingBlockEntity {
|
||||
|
||||
@Override
|
||||
public void a() {
|
||||
|
Loading…
Reference in New Issue
Block a user