diff options
author | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2021-09-25 13:51:07 -0400 |
---|---|---|
committer | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2021-09-25 13:51:07 -0400 |
commit | 086f8b1c0f05eb8e48fc8e21cd7381b16f4ce475 (patch) | |
tree | 23bea7ecda4734c177e59a6b9cb1131ec6767385 /src | |
parent | af537549bfcaf3d0afa437025c3cf730066139ef (diff) | |
download | SkytilsMod-086f8b1c0f05eb8e48fc8e21cd7381b16f4ce475.tar.gz SkytilsMod-086f8b1c0f05eb8e48fc8e21cd7381b16f4ce475.tar.bz2 SkytilsMod-086f8b1c0f05eb8e48fc8e21cd7381b16f4ce475.zip |
fix new etherwarp detection not checking 2nd block
Diffstat (limited to 'src')
-rw-r--r-- | src/main/kotlin/skytils/skytilsmod/features/impl/misc/ItemFeatures.kt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/kotlin/skytils/skytilsmod/features/impl/misc/ItemFeatures.kt b/src/main/kotlin/skytils/skytilsmod/features/impl/misc/ItemFeatures.kt index 334f2cb9..a9db5278 100644 --- a/src/main/kotlin/skytils/skytilsmod/features/impl/misc/ItemFeatures.kt +++ b/src/main/kotlin/skytils/skytilsmod/features/impl/misc/ItemFeatures.kt @@ -17,6 +17,7 @@ */ package skytils.skytilsmod.features.impl.misc +import gg.essential.universal.UChat import gg.essential.universal.UResolution import net.minecraft.block.* import net.minecraft.client.entity.EntityOtherPlayerMP @@ -570,10 +571,10 @@ class ItemFeatures { Blocks.fire, Blocks.skull ) - ) return false - if (sideHit !== EnumFacing.UP && newBlock.block is BlockSign) return false - if (newBlock.block is BlockLadder || newBlock.block is BlockDoor || newBlock.block is BlockLiquid) return false - return newBlock.block.isPassable(mc.theWorld, newPos) + ) return@all false + if (sideHit !== EnumFacing.UP && newBlock.block is BlockSign) return@all false + if (newBlock.block is BlockLadder || newBlock.block is BlockDoor || newBlock.block is BlockLiquid) return@all false + return@all newBlock.block.isPassable(mc.theWorld, newPos) } } |