From 3c762e2c4ba6563923d0088c34627b2aad20f0d1 Mon Sep 17 00:00:00 2001 From: alex_s168 <63254202+alex-s168@users.noreply.github.com> Date: Tue, 16 Jan 2024 20:50:13 +0100 Subject: [PATCH] props work now! --- .../org/valkyrienskies/tournament/ship/TournamentShips.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/src/main/kotlin/org/valkyrienskies/tournament/ship/TournamentShips.kt b/common/src/main/kotlin/org/valkyrienskies/tournament/ship/TournamentShips.kt index 9f41b38..5e93a5b 100644 --- a/common/src/main/kotlin/org/valkyrienskies/tournament/ship/TournamentShips.kt +++ b/common/src/main/kotlin/org/valkyrienskies/tournament/ship/TournamentShips.kt @@ -11,6 +11,7 @@ import org.joml.primitives.AABBd import org.valkyrienskies.core.api.ships.* import org.valkyrienskies.core.apigame.world.properties.DimensionId import org.valkyrienskies.core.impl.game.ships.PhysShipImpl +import org.valkyrienskies.mod.common.util.toBlockPos import org.valkyrienskies.mod.common.util.toJOML import org.valkyrienskies.tournament.TickScheduler import org.valkyrienskies.tournament.TournamentConfig @@ -90,9 +91,7 @@ class TournamentShips: ShipForcesInducer { p.touchingWater = water val be = lvl.getBlockEntity( - Helper3d - .convertShipToWorldSpace(lvl, p.pos.toDouble()) - .toBlock() + p.pos.toBlockPos() ) as PropellerBlockEntity? if (be != null) {