Skip to content

Commit

Permalink
Made ships drag jumping entities for 1 second instead of 0.5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
StewStrong committed Dec 16, 2023
1 parent 8475374 commit 27bc019
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ class EntityDraggingInformation {
var restoreCachedLastPosition = false

fun isEntityBeingDraggedByAShip(): Boolean {
return (lastShipStoodOn != null) && (ticksSinceStoodOnShip < 10) && !mountedToEntity
return (lastShipStoodOn != null) && (ticksSinceStoodOnShip < TICKS_TO_DRAG_ENTITIES) && !mountedToEntity
}

companion object {
// Max number of ticks we will drag an entity after the entity has jumped off the ship
private const val TICKS_TO_DRAG_ENTITIES = 20
}
}

Expand Down

0 comments on commit 27bc019

Please sign in to comment.