diff --git a/src/main/kotlin/org/polyfrost/polyhitbox/HitboxRenderer.kt b/src/main/kotlin/org/polyfrost/polyhitbox/HitboxRenderer.kt index 4e519e4..f4413c1 100644 --- a/src/main/kotlin/org/polyfrost/polyhitbox/HitboxRenderer.kt +++ b/src/main/kotlin/org/polyfrost/polyhitbox/HitboxRenderer.kt @@ -16,7 +16,6 @@ import dev.deftu.omnicore.api.data.shape.OmniVoxelShapes import dev.deftu.omnicore.api.data.vec.OmniVec3d import dev.deftu.omnicore.api.identifierOrThrow import dev.deftu.omnicore.api.math.OmniVector3f -import net.minecraft.entity.Entity import kotlin.math.abs const val STIPPLE_PATTERN: Short = 0xAAAA.toShort() @@ -181,14 +180,4 @@ private fun renderOutlineBox( val buffer = pipeline.createBufferBuilder() OmniShapeRenderer.SHAPE_OUTLINE.render(buffer, stack, OmniVoxelShapes.cuboid(boundingBox).simplify(), color) buffer.buildOrNull()?.drawAndClose(pipeline, builder) -} - -private fun getEntityId(entity: Entity): String? { - //#if MC >= 1.16.5 - val entityType = entity.type.toString() - val type = entityType.substring(entityType.lastIndexOf("."), entityType.length).replace(".", "") - //#else - //$$ val type = EntityList.getEntityString(entity) ?: return null - //#endif - return type } \ No newline at end of file diff --git a/src/main/kotlin/org/polyfrost/polyhitbox/PolyHitbox.kt b/src/main/kotlin/org/polyfrost/polyhitbox/PolyHitbox.kt index 115b0b1..507adc4 100644 --- a/src/main/kotlin/org/polyfrost/polyhitbox/PolyHitbox.kt +++ b/src/main/kotlin/org/polyfrost/polyhitbox/PolyHitbox.kt @@ -15,7 +15,6 @@ import net.fabricmc.api.ClientModInitializer //#endif import dev.deftu.omnicore.api.client.client -import org.apache.logging.log4j.LogManager import org.polyfrost.oneconfig.api.config.v1.ConfigManager //#if FORGE-LIKE @@ -30,7 +29,6 @@ object PolyHitbox : ClientModInitializer //#endif { - private val LOGGER = LogManager.getLogger("PolyHitbox") private val hitboxInfo = HitboxInfo("hitbox.yaml") private var hitboxesEnabled: Boolean @@ -78,7 +76,6 @@ object PolyHitbox //hitboxesEnabled = enabled //#endif } - //#endif //#if FORGE && MC >= 1.16.5 //$$ init {