mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-20 01:15:15 +01:00
Also check world on chunk load/unload
This commit is contained in:
parent
07b55853dc
commit
56ca2125fa
@ -91,14 +91,14 @@ abstract class LocationBasedLineTracker<T extends BaseHologramLine> extends Line
|
||||
|
||||
@Override
|
||||
protected final void onChunkLoad(Chunk chunk) {
|
||||
if (this.chunkX == chunk.getX() && this.chunkZ == chunk.getZ()) {
|
||||
if (this.world == chunk.getWorld() && this.chunkX == chunk.getX() && this.chunkZ == chunk.getZ()) {
|
||||
this.chunkLoaded = true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void onChunkUnload(Chunk chunk) {
|
||||
if (this.chunkX == chunk.getX() && this.chunkZ == chunk.getZ()) {
|
||||
if (this.world == chunk.getWorld() && this.chunkX == chunk.getX() && this.chunkZ == chunk.getZ()) {
|
||||
this.chunkLoaded = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user