From 0cac33aec4ecdb5d1eb6e242e31dead16460e37e Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 9 Jan 2022 17:19:52 +0700 Subject: [PATCH] Serverside blackhole "weaker" affection now work correctly --- .../mc/otm/block/entity/blackhole/BlockEntityBlackHole.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlockEntityBlackHole.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlockEntityBlackHole.kt index 618ed0f92..ae08dc613 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlockEntityBlackHole.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlockEntityBlackHole.kt @@ -426,7 +426,7 @@ class BlockEntityBlackHole(p_155229_: BlockPos, p_155230_: BlockState) : BlockEn val distance = living.position().distanceTo(center) if (living !is Player || !living.abilities.mayfly) { - setDeltaMovement(living, center, distance, false) + setDeltaMovement(living, center, distance, living !is Player) } if (distance < gravitationStrength + 1) {