mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 04:54:05 +09:00
update the ghost sparingly
This commit is contained in:
@@ -67,6 +67,8 @@ open class FixtureItemBase(originalID: ItemID, val fixtureClassName: String) : G
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// update the ghost sparingly
|
||||||
|
if (INGAME.WORLD_UPDATE_TIMER % 2 == 0) {
|
||||||
(INGAME as TerrarumIngame).blockMarkingActor.let {
|
(INGAME as TerrarumIngame).blockMarkingActor.let {
|
||||||
val item = ghostItem.get()
|
val item = ghostItem.get()
|
||||||
|
|
||||||
@@ -84,6 +86,7 @@ open class FixtureItemBase(originalID: ItemID, val fixtureClassName: String) : G
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun effectOnUnequip(actor: ActorWithBody, delta: Float) {
|
override fun effectOnUnequip(actor: ActorWithBody, delta: Float) {
|
||||||
// ghostInit = false
|
// ghostInit = false
|
||||||
|
|||||||
Reference in New Issue
Block a user