aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-17 10:45:58 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-17 10:45:58 +0800
commite0e237c8831cb483ef945856b3d5355d0f647a50 (patch)
treeca527f799883c5af0c898e14962252df21c4c968 /features
parent4155fb2fa654de3f5b99ae0daf020dad028183b4 (diff)
downloadSoopyV2-e0e237c8831cb483ef945856b3d5355d0f647a50.tar.gz
SoopyV2-e0e237c8831cb483ef945856b3d5355d0f647a50.tar.bz2
SoopyV2-e0e237c8831cb483ef945856b3d5355d0f647a50.zip
fix ram
Diffstat (limited to 'features')
-rw-r--r--features/dungeonMap/index.js2
-rw-r--r--features/dungeonMap2/DungeonMapData.js1
-rw-r--r--features/dungeonMap2/DungeonMapRoom.js14
-rw-r--r--features/dungeonMap2/index.js8
4 files changed, 5 insertions, 20 deletions
diff --git a/features/dungeonMap/index.js b/features/dungeonMap/index.js
index 7045c81..7a64980 100644
--- a/features/dungeonMap/index.js
+++ b/features/dungeonMap/index.js
@@ -813,7 +813,7 @@ class DungeonMap extends Feature {
if (mortLocationOnMap && this.mortLocation) {
this.offset = [mortLocationOnMap[0] - this.mortLocation[0] / this.mapScale, mortLocationOnMap[1] - this.mortLocation[1] / this.mapScale]
// this.renderImage.setRGB(mortLocationOnMap[0], mortLocationOnMap[1], Renderer.color(255, 0, 0))
- ChatLib.chat(roomWidth + " " + this.offset.join(", "))
+ // ChatLib.chat(roomWidth + " " + this.offset.join(", "))
}
}
diff --git a/features/dungeonMap2/DungeonMapData.js b/features/dungeonMap2/DungeonMapData.js
index 9a67c11..1b50c67 100644
--- a/features/dungeonMap2/DungeonMapData.js
+++ b/features/dungeonMap2/DungeonMapData.js
@@ -120,7 +120,6 @@ class DungeonMapData {
}
updateHotbarData() {
-
let mapData
try {
let item = Player.getInventory().getStackInSlot(8)
diff --git a/features/dungeonMap2/DungeonMapRoom.js b/features/dungeonMap2/DungeonMapRoom.js
index 5b1dc1a..d6ee014 100644
--- a/features/dungeonMap2/DungeonMapRoom.js
+++ b/features/dungeonMap2/DungeonMapRoom.js
@@ -137,29 +137,21 @@ class DungeonMapRoom {
graphics.setColor(this.getRoomRenderColor())
- graphics.rotate(this.rotation * Math.PI / 2)
switch (this.shape) {
case DungeonMapRoom.SHAPE_1X1:
- graphics.fillRect(-13, -13, 26, 26)
- break;
case DungeonMapRoom.SHAPE_1X2:
- graphics.fillRect(-(26 + 32) / 2, -13, 26 + 32, 26)
- break;
case DungeonMapRoom.SHAPE_1X3:
- graphics.fillRect(-(26 + 64) / 2, -13, 26 + 64, 26)
- break;
case DungeonMapRoom.SHAPE_1X4:
- graphics.fillRect(-(26 + 96) / 2, -13, 26 + 96, 26)
- break;
case DungeonMapRoom.SHAPE_2X2:
- graphics.fillRect(-(26 + 32) / 2, -(26 + 32) / 2, 26 + 32, 26 + 32)
+ graphics.fillRect(-roomWidth / 2 + 3, -roomHeight / 2 + 3, roomWidth - 6, roomHeight - 6)
break;
case DungeonMapRoom.SHAPE_L:
+ graphics.rotate(this.rotation * Math.PI / 2)
graphics.fillRect(-(26 + 32) / 2, -(26 + 32) / 2, 26, 26 + 32)
graphics.fillRect(-(26 + 32) / 2, -(26 + 32) / 2, 26 + 32, 26)
+ graphics.rotate(-this.rotation * Math.PI / 2)
break;
}
- graphics.rotate(-this.rotation * Math.PI / 2)
graphics.translate(-translateX, -translateY)
diff --git a/features/dungeonMap2/index.js b/features/dungeonMap2/index.js
index 1ec9cc0..08f0869 100644
--- a/features/dungeonMap2/index.js
+++ b/features/dungeonMap2/index.js
@@ -33,7 +33,6 @@ class DungeonMap extends Feature {
this.roomXY = this.getRoomXYWorld().join(",")
this.lastXY = undefined
- this.defaultPlayerImage = renderLibs.getImage("https://crafatar.com/avatars/dc8c39647b294e03ae9ed13ebd65dd29?size=8", true)
let registerActionBar = this.registerCustom("actionbar", (curr, max) => {
@@ -56,6 +55,7 @@ class DungeonMap extends Feature {
this.registerEvent("renderOverlay", this.renderOverlay)
this.registerEvent("worldLoad", this.worldLoad)
+
}
update() {
@@ -303,12 +303,6 @@ class DungeonMap extends Feature {
return World.getBlockStateAt(new BlockPos(x, y, z)).getBlockId()
}
- getImageForPlayer(uuid) {
- let img = renderLibs.getImage("https://crafatar.com/avatars/" + uuid.replace(/-/g, "") + "?size=8&overlay")
- if (!img) return this.defaultPlayerImage
-
- return img
- }
onDisable() {
}
}