mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 11:15:21 +01:00
clear the affected cache if triggerRender...() is called
This commit is contained in:
parent
9d2755cab1
commit
96a11c4711
@ -956,11 +956,13 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
|||||||
@Override
|
@Override
|
||||||
public final int triggerRenderOfVolume(String wid, int minx, int miny, int minz,
|
public final int triggerRenderOfVolume(String wid, int minx, int miny, int minz,
|
||||||
int maxx, int maxy, int maxz) {
|
int maxx, int maxy, int maxz) {
|
||||||
|
sscache.invalidateSnapshot(wid, minx, miny, minz, maxx, maxy, maxz);
|
||||||
return core.triggerRenderOfVolume(wid, minx, miny, minz, maxx, maxy, maxz);
|
return core.triggerRenderOfVolume(wid, minx, miny, minz, maxx, maxy, maxz);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final int triggerRenderOfBlock(String wid, int x, int y, int z) {
|
public final int triggerRenderOfBlock(String wid, int x, int y, int z) {
|
||||||
|
sscache.invalidateSnapshot(wid, x, y, z);
|
||||||
return core.triggerRenderOfBlock(wid, x, y, z);
|
return core.triggerRenderOfBlock(wid, x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user