Skip to content

Commit

Permalink
Actually fix #284 (#288)
Browse files Browse the repository at this point in the history
* Fix #284

* Actually fix #284

Co-authored-by: thedarkcolour <[email protected]>
  • Loading branch information
DK0492 and thedarkcolour authored Mar 27, 2022
1 parent 4ccea1f commit 8da10ec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import net.minecraft.util.math.BlockPos
import net.minecraft.util.math.MathHelper
import net.minecraft.world.WorldServer
import net.minecraftforge.event.ForgeEventFactory
import net.minecraftforge.fml.common.Loader
import java.util.*
import kotlin.math.abs
import kotlin.math.floor
Expand Down Expand Up @@ -140,8 +141,7 @@ object FireproofItemLogic {
entity.spawnRunningParticles()
entity.handleWaterMovement()

// todo replace with call to ICubicWorld.getMinHeight - 64.0
if (entity.posY < -64.0) {
if (entity.posY < -64.0 && !Loader.isModLoaded("cubicchunks")) {
entity.outOfWorld()
}

Expand Down

0 comments on commit 8da10ec

Please sign in to comment.