Add support for selectively hiding portions of world (hiddenlimits)
This commit is contained in:
parent
7e8e0411d9
commit
166a5272fb
6 changed files with 73 additions and 0 deletions
|
|
@ -523,6 +523,14 @@ public class LegacyMapChunkCache implements MapChunkCache {
|
|||
visible_limits = new ArrayList<VisibilityLimit>();
|
||||
visible_limits.add(limit);
|
||||
}
|
||||
/**
|
||||
* Add hidden area limit - can be called more than once
|
||||
* Needs to be set before chunks are loaded
|
||||
* Coordinates are block coordinates
|
||||
*/
|
||||
public void setHiddenRange(VisibilityLimit lim) {
|
||||
Log.severe("LegacyMapChunkCache does not support hidden areas");
|
||||
}
|
||||
/**
|
||||
* Set autogenerate - must be done after at least one visible range has been set
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue