]> git.lizzy.rs Git - signs_lib.git/commit
attempt to work around engine player model bug
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>
Wed, 25 Sep 2019 19:31:56 +0000 (15:31 -0400)
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>
Wed, 25 Sep 2019 21:10:00 +0000 (17:10 -0400)
commit6a4ddfddab4ae46b46599ebf26dec15f95ba98fd
tree48fe50aece44d6b11129f2687ff94fb5405a31ce
parent1e05aa9309fce8f318e230c3ca668a293ff9da7a
attempt to work around engine player model bug

when the world loads and the player spawns in, or is
teleported to the same node space as a sign, occasionally, the
player's model goes flat and their skin gets changed to the
whatever the sign's text is.

Also, when checking if an entity needs spawned, or when
deleting, try to make absolutely sure that only sign-related
entities will be selected for re-use, or selected for deletion
(we don't want some player's prize cow to be deleted)

I think this will fix it, or at least it'll surely prevent
signs_lib from being able to cause it.

Also, moved another function to the entity-handling section of
the file and made it global (signs_lib namespace) in the
process.
api.lua