Added check for resolutions in map send

This commit is contained in:
Mitchell McCaffrey
2020-10-30 11:52:23 +11:00
parent d7b866d98d
commit 04dceef022
+6 -4
View File
@@ -316,10 +316,12 @@ function NetworkedMapAndTokens({ session }) {
replyWithFile("ultra");
break;
case "original":
if (map.resolutions.medium) {
replyWithPreview("medium");
} else if (map.resolutions.low) {
replyWithPreview("low");
if (map.resolutions) {
if (map.resolutions.medium) {
replyWithPreview("medium");
} else if (map.resolutions.low) {
replyWithPreview("low");
}
}
replyWithFile();
break;