Rename world renderer events
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -31,7 +31,7 @@ import moe.nea.firmament.util.SBData
|
||||
import moe.nea.firmament.util.blockPos
|
||||
import moe.nea.firmament.gui.config.ManagedConfig
|
||||
import moe.nea.firmament.util.data.ProfileSpecificDataHolder
|
||||
import moe.nea.firmament.util.render.RenderBlockContext.Companion.renderBlocks
|
||||
import moe.nea.firmament.util.render.RenderInWorldContext.Companion.renderInWorld
|
||||
import moe.nea.firmament.util.unformattedString
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ object FairySouls : FirmamentFeature {
|
||||
}
|
||||
WorldRenderLastEvent.subscribe {
|
||||
if (!TConfig.displaySouls) return@subscribe
|
||||
renderBlocks(it.matrices, it.camera) {
|
||||
renderInWorld(it.matrices, it.camera) {
|
||||
color(1F, 1F, 0F, 0.8F)
|
||||
currentMissingSouls.forEach {
|
||||
block(it.blockPos)
|
||||
|
||||
Reference in New Issue
Block a user