Khaligufzel / Dimensionfall

A survival game inspired by Cataclysm: Dark Days Ahead and Bright Nights.
MIT License
12 stars 5 forks source link

Fix player teleportation #184

Closed snipercup closed 4 months ago

snipercup commented 4 months ago

Fixes #183

The collision layers of the bullet scene were not set right and collided with the player. Combined with the changes in #154, it started pushing the player around.

I also found and fixed a bug that happens when a mob is also present on the map. This bug does not happen when no mob is spawned. What happens is that the furniture will collide with other furniture in the 0,0,0 position until they get their own proper position set. I don't know why this only happens when a mob is also spawned. It probably has something to do with the order and execution in chunk.gd. I 'fixed' it by freezing the furniture until it has reached it's position.