mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-16 13:34:06 +09:00
h o p e f u l l y
This commit is contained in:
@@ -154,9 +154,9 @@ object WorldSimulator {
|
||||
val s = actor.scale
|
||||
val w = actor.baseHitboxW * s
|
||||
val h = actor.baseHitboxH * s
|
||||
val pickupDistance = w*w + h*h// TODO refer to the actorValue
|
||||
// println("${result.distance}\t$pickupDistance")
|
||||
if (result.distance < pickupDistance) {
|
||||
val pickupDistSqr = w*w + h*h// TODO refer to the actorValue
|
||||
// println("${result.distance}\pickupDistSqr")
|
||||
if (result.distance < pickupDistSqr) {
|
||||
droppedItem.flagDespawn = true
|
||||
(actor as Pocketed).inventory.add(droppedItem.itemID, droppedItem.itemCount)
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user