Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/main/kotlin/org/polyfrost/polyhitbox/HitboxRenderer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
}
3 changes: 0 additions & 3 deletions src/main/kotlin/org/polyfrost/polyhitbox/PolyHitbox.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -30,7 +29,6 @@ object PolyHitbox
: ClientModInitializer
//#endif
{
private val LOGGER = LogManager.getLogger("PolyHitbox")
private val hitboxInfo = HitboxInfo("hitbox.yaml")

private var hitboxesEnabled: Boolean
Expand Down Expand Up @@ -78,7 +76,6 @@ object PolyHitbox
//hitboxesEnabled = enabled
//#endif
}
//#endif

//#if FORGE && MC >= 1.16.5
//$$ init {
Expand Down
Loading