Skip to content

Commit

Permalink
auto update notes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 22, 2017
1 parent 666b9ad commit d817a64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Expand Up @@ -166,6 +166,7 @@ else if (script != null) {
int wide = width != null ? width.asInt() : resize.asBoolean() ? 128 : 0;
int high = height != null ? height.asInt() : resize.asBoolean() ? 128 : 0;
if (CoreUtilities.toLowerCase(image.asString()).endsWith(".gif")) {
dmr.autoUpdate = true;
dmr.addObject(new MapAnimatedImage(x.asString(), y.asString(), "true", false, image.asString(),
wide, high));
}
Expand Down
Expand Up @@ -40,6 +40,10 @@ public MapScriptContainer(YamlConfiguration configurationSection, String scriptC
// # The 'custom name' can be anything you wish. Use color tags to make colored custom names.
// display name: custom name
//
//
// # Whether to constantly update things.
// auto update: true
//
// # Lists all contained objects.
// objects:
//
Expand Down
Expand Up @@ -14,7 +14,7 @@ public class DenizenMapRenderer extends MapRenderer {

public List<MapObject> mapObjects = new ArrayList<MapObject>();
private List<MapRenderer> oldMapRenderers;
private boolean autoUpdate;
public boolean autoUpdate;

public boolean displayOriginal = true;

Expand Down

0 comments on commit d817a64

Please sign in to comment.