aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/features/fishing/FishingWarning.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-06-11 22:35:03 +0200
committernea <nea@nea.moe>2023-06-11 22:35:09 +0200
commit74e79759bf8888ea08a6d244a50e531aaae20f27 (patch)
treef614e31c980ce61a6106768ed7ccfa1f42905c8c /src/main/kotlin/moe/nea/firmament/features/fishing/FishingWarning.kt
parentcfdf89aa1a64f8a32401201b867918aed64145df (diff)
downloadfirmament-74e79759bf8888ea08a6d244a50e531aaae20f27.tar.gz
firmament-74e79759bf8888ea08a6d244a50e531aaae20f27.tar.bz2
firmament-74e79759bf8888ea08a6d244a50e531aaae20f27.zip
Rename world renderer events
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/features/fishing/FishingWarning.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/features/fishing/FishingWarning.kt6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/features/fishing/FishingWarning.kt b/src/main/kotlin/moe/nea/firmament/features/fishing/FishingWarning.kt
index 24e31ea..fa8d779 100644
--- a/src/main/kotlin/moe/nea/firmament/features/fishing/FishingWarning.kt
+++ b/src/main/kotlin/moe/nea/firmament/features/fishing/FishingWarning.kt
@@ -25,8 +25,6 @@ import kotlin.math.asin
import kotlin.math.atan2
import kotlin.math.sqrt
import kotlin.time.Duration.Companion.seconds
-import net.minecraft.client.render.VertexConsumerProvider
-import net.minecraft.client.render.VertexConsumers
import net.minecraft.entity.projectile.FishingBobberEntity
import net.minecraft.particle.ParticleTypes
import net.minecraft.util.math.Vec3d
@@ -37,7 +35,7 @@ import moe.nea.firmament.features.FirmamentFeature
import moe.nea.firmament.gui.config.ManagedConfig
import moe.nea.firmament.util.MC
import moe.nea.firmament.util.TimeMark
-import moe.nea.firmament.util.render.RenderBlockContext.Companion.renderBlocks
+import moe.nea.firmament.util.render.RenderInWorldContext.Companion.renderInWorld
object FishingWarning : FirmamentFeature {
override val name: String
@@ -139,7 +137,7 @@ object FishingWarning : FirmamentFeature {
WorldRenderLastEvent.subscribe {
recentParticles.removeIf { it.second.passedTime() > 5.seconds }
recentCandidates.removeIf { it.timeMark.passedTime() > 5.seconds }
- renderBlocks(it.matrices, it.camera) {
+ renderInWorld(it.matrices, it.camera) {
color(0f, 0f, 1f, 1f)
recentParticles.forEach {
tinyBlock(it.first, 0.1F)