Removed ChunkListener8 and resolved compiling issues

This commit is contained in:
MattBDev 2020-02-13 13:07:30 -05:00
parent e56e9e39ee
commit 4d4709b2f6
3 changed files with 2 additions and 23 deletions

View File

@ -9,7 +9,6 @@ import com.boydti.fawe.bukkit.adapter.BukkitQueueHandler;
import com.boydti.fawe.bukkit.listener.BrushListener; import com.boydti.fawe.bukkit.listener.BrushListener;
import com.boydti.fawe.bukkit.listener.BukkitImageListener; import com.boydti.fawe.bukkit.listener.BukkitImageListener;
import com.boydti.fawe.bukkit.listener.CFIPacketListener; import com.boydti.fawe.bukkit.listener.CFIPacketListener;
import com.boydti.fawe.bukkit.listener.ChunkListener_8;
import com.boydti.fawe.bukkit.listener.ChunkListener_9; import com.boydti.fawe.bukkit.listener.ChunkListener_9;
import com.boydti.fawe.bukkit.listener.RenderListener; import com.boydti.fawe.bukkit.listener.RenderListener;
import com.boydti.fawe.bukkit.regions.FreeBuildRegion; import com.boydti.fawe.bukkit.regions.FreeBuildRegion;
@ -94,12 +93,7 @@ public class FaweBukkit implements IFawe, Listener {
Bukkit.getPluginManager().registerEvents(FaweBukkit.this, FaweBukkit.this.plugin); Bukkit.getPluginManager().registerEvents(FaweBukkit.this, FaweBukkit.this.plugin);
// The tick limiter // The tick limiter
try {
Class.forName("sun.misc.SharedSecrets");
new ChunkListener_8();
} catch (ClassNotFoundException e) {
new ChunkListener_9(); new ChunkListener_9();
}
}); });
} }

View File

@ -1,16 +0,0 @@
package com.boydti.fawe.bukkit.listener;
import sun.misc.SharedSecrets;
public class ChunkListener_8 extends ChunkListener {
@Override
protected int getDepth(Exception ex) {
return SharedSecrets.getJavaLangAccess().getStackTraceDepth(ex);
}
@Override
protected StackTraceElement getElement(Exception ex, int index) {
return SharedSecrets.getJavaLangAccess().getStackTraceElement(ex, index);
}
}

View File

@ -29,6 +29,7 @@ import org.bukkit.Difficulty;
import org.bukkit.Effect; import org.bukkit.Effect;
import org.bukkit.FluidCollisionMode; import org.bukkit.FluidCollisionMode;
import org.bukkit.GameRule; import org.bukkit.GameRule;
import org.bukkit.HeightMap;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.Particle; import org.bukkit.Particle;
@ -253,7 +254,7 @@ public class AsyncWorld extends PassthroughExtent implements World {
public AsyncBlock getHighestBlockAt(Location loc) { public AsyncBlock getHighestBlockAt(Location loc) {
return getHighestBlockAt(loc.getBlockX(), loc.getBlockZ()); return getHighestBlockAt(loc.getBlockX(), loc.getBlockZ());
} }
@Override @Override
public AsyncChunk getChunkAt(int x, int z) { public AsyncChunk getChunkAt(int x, int z) {
return new AsyncChunk(this, x, z); return new AsyncChunk(this, x, z);