Serverside blackhole "weaker" affection now work correctly

This commit is contained in:
DBotThePony 2022-01-09 17:19:52 +07:00
parent ec6c903b6f
commit 0cac33aec4
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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) {