aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-06-05 11:23:18 -0500
committeringlettronald <inglettronald@gmail.com>2023-06-05 11:24:47 -0500
commit27916b0a2cd045c61c156cb0439cb8ed9cf656f7 (patch)
treece790767b43bd526b2d1735a63c5cab07eae1a35 /src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt
parent860045f63761c91247f80f17ddbad8bfa365aa0f (diff)
downloadDulkirMod-27916b0a2cd045c61c156cb0439cb8ed9cf656f7.tar.gz
DulkirMod-27916b0a2cd045c61c156cb0439cb8ed9cf656f7.tar.bz2
DulkirMod-27916b0a2cd045c61c156cb0439cb8ed9cf656f7.zip
updated some rendering code
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt')
-rw-r--r--src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt b/src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt
index 5edde33..8c891ba 100644
--- a/src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt
+++ b/src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt
@@ -48,28 +48,4 @@ object MemoryLeakFix {
world.removeEntityFromWorld(it.entityId)
}
}
-
- @SubscribeEvent
- fun displayBlankStands(event: RenderLivingEvent.Post<*>) {
- if (!DulkirConfig.debugStandRemoval) return
- if (event.entity !is EntityArmorStand) return
- if (event.entity.hasCustomName()) return
- if (event.entity.inventory.any{slot -> slot != null}) return
- val pos = WorldRenderUtils.fixRenderPos(event.x, event.y, event.z)
- val x = pos[0]
- val y = pos[1]
- val z = pos[2]
-
- WorldRenderUtils.drawCustomBox(
- x - .5,
- 1.0,
- y - .5,
- 1.0,
- z - .5,
- 1.0,
- Color(15, 247, 236, 255),
- 3f,
- phase = true
- )
- }
} \ No newline at end of file