mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 05:54:05 +09:00
player is now nullable; wtf is calling Ingame 5 times?
This commit is contained in:
@@ -39,7 +39,11 @@ abstract class Actor(val renderOrder: RenderOrder) : Comparable<Actor>, Runnable
|
||||
var actorValue = ActorValue(this)
|
||||
@Volatile var flagDespawn = false
|
||||
|
||||
override fun equals(other: Any?) = referenceID == (other as Actor).referenceID
|
||||
override fun equals(other: Any?): Boolean {
|
||||
if (other == null) return false
|
||||
|
||||
return referenceID == (other as Actor).referenceID
|
||||
}
|
||||
override fun hashCode() = referenceID!!
|
||||
override fun toString() =
|
||||
if (actorValue.getAsString("name").isNullOrEmpty())
|
||||
|
||||
@@ -337,7 +337,7 @@ open class ActorWBMovable(val world: GameWorld, renderOrder: RenderOrder, val im
|
||||
if (spriteGlow != null) spriteGlow!!.update(delta)
|
||||
|
||||
// make NoClip work for player
|
||||
if (true) {//this == Terrarum.ingame!!.playableActor) {
|
||||
if (true) {//this == Terrarum.ingame!!.actorNowPlaying) {
|
||||
isNoSubjectToGrav = isNoClip || COLLISION_TEST_MODE
|
||||
isNoCollideWorld = isNoClip
|
||||
isNoSubjectToFluidResistance = isNoClip
|
||||
|
||||
Reference in New Issue
Block a user