Skip to content

Commit cb023de

Browse files
authored
Remove Un-used code & Fix small issue (#13)
* Tons of fixes & Updated OneConfig * Remove unused code & Fix endif line
1 parent 030501b commit cb023de

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/main/kotlin/org/polyfrost/polyhitbox/HitboxRenderer.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import dev.deftu.omnicore.api.data.shape.OmniVoxelShapes
1616
import dev.deftu.omnicore.api.data.vec.OmniVec3d
1717
import dev.deftu.omnicore.api.identifierOrThrow
1818
import dev.deftu.omnicore.api.math.OmniVector3f
19-
import net.minecraft.entity.Entity
2019
import kotlin.math.abs
2120

2221
const val STIPPLE_PATTERN: Short = 0xAAAA.toShort()
@@ -181,14 +180,4 @@ private fun renderOutlineBox(
181180
val buffer = pipeline.createBufferBuilder()
182181
OmniShapeRenderer.SHAPE_OUTLINE.render(buffer, stack, OmniVoxelShapes.cuboid(boundingBox).simplify(), color)
183182
buffer.buildOrNull()?.drawAndClose(pipeline, builder)
184-
}
185-
186-
private fun getEntityId(entity: Entity): String? {
187-
//#if MC >= 1.16.5
188-
val entityType = entity.type.toString()
189-
val type = entityType.substring(entityType.lastIndexOf("."), entityType.length).replace(".", "")
190-
//#else
191-
//$$ val type = EntityList.getEntityString(entity) ?: return null
192-
//#endif
193-
return type
194183
}

src/main/kotlin/org/polyfrost/polyhitbox/PolyHitbox.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import net.fabricmc.api.ClientModInitializer
1515
//#endif
1616

1717
import dev.deftu.omnicore.api.client.client
18-
import org.apache.logging.log4j.LogManager
1918
import org.polyfrost.oneconfig.api.config.v1.ConfigManager
2019

2120
//#if FORGE-LIKE
@@ -30,7 +29,6 @@ object PolyHitbox
3029
: ClientModInitializer
3130
//#endif
3231
{
33-
private val LOGGER = LogManager.getLogger("PolyHitbox")
3432
private val hitboxInfo = HitboxInfo("hitbox.yaml")
3533

3634
private var hitboxesEnabled: Boolean
@@ -78,7 +76,6 @@ object PolyHitbox
7876
//hitboxesEnabled = enabled
7977
//#endif
8078
}
81-
//#endif
8279

8380
//#if FORGE && MC >= 1.16.5
8481
//$$ init {

0 commit comments

Comments
 (0)