Added alternative for deprecated isOnGround
This commit is contained in:
@@ -4,3 +4,5 @@ import org.bukkit.Material
|
||||
import org.bukkit.entity.Entity
|
||||
|
||||
val Entity.isInWater: Boolean get() = this.location.block.type == Material.WATER
|
||||
|
||||
val Entity.isGroundSolid: Boolean get() = this.location.add(0.0, -0.01, 0.0).block.type.isSolid
|
Reference in New Issue
Block a user