mirror of
https://gitlab.bixilon.de/bixilon/pixlyzer.git
synced 2025-09-26 13:40:02 -04:00
fix build with newer yarn mappings
This commit is contained in:
parent
3b848ed2ab
commit
d79c326307
@ -30,7 +30,7 @@ object EntitySpawner {
|
||||
private val POTION_ENTITY_ENTITY_CLASS = getClass("net.minecraft.entity.thrown.ThrownPotionEntity", "net.minecraft.entity.projectile.thrown.PotionEntity")!!
|
||||
|
||||
|
||||
private val ATOMIC_RANDOM_CLASS = getClass("net.minecraft.world.gen.random.AtomicSimpleRandom")
|
||||
private val ATOMIC_RANDOM_CLASS = getClass("net.minecraft.util.math.random.AtomicSimpleRandom", "net.minecraft.world.gen.random.AtomicSimpleRandom")
|
||||
|
||||
fun summonEntity(entityType: EntityType<*>): Entity {
|
||||
when (entityType) {
|
||||
@ -81,12 +81,6 @@ object EntitySpawner {
|
||||
null
|
||||
}
|
||||
|
||||
private val LEGACY_ENTITY_CREATE_METHOD = try {
|
||||
getClass("net.minecraft.entity.EntityType\$EntityFactory")?.getDeclaredMethod("create", EntityType::class.java, World::class.java)
|
||||
} catch (exception: Exception) {
|
||||
null
|
||||
}
|
||||
|
||||
var OBJENSIS: Objenesis = ObjenesisStd()
|
||||
|
||||
val CLIENT_LEVEL = OBJENSIS.newInstance(levelClass) as ClientWorld
|
||||
|
Loading…
x
Reference in New Issue
Block a user