mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-20 09:25:11 +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
|
@Override
|
||||||
protected final void onChunkLoad(Chunk chunk) {
|
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;
|
this.chunkLoaded = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected final void onChunkUnload(Chunk chunk) {
|
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;
|
this.chunkLoaded = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user