egordorichev / LastTry

:deciduous_tree: LastTry is open-source game written in Java, using LibGDX library and inspired by Terraria :deciduous_tree:
MIT License
119 stars 17 forks source link

Chunk with changes can be reset #79

Closed Col-E closed 7 years ago

Col-E commented 7 years ago

I was building a test ground for something and all of a sudden the terrain to reset to what it had looked like when I loaded up the game.

egordorichev commented 7 years ago

Did the map reset? Can't get, what yo mean.. If it reseted, that means, it did not save.

Col-E commented 7 years ago

Just sat around on a map until it did it again. Heres the video

egordorichev commented 7 years ago

Hm, why do you use ash in world gen, and not ebonstone and ebonsand? They are analogs for crimston and crimsand....

egordorichev commented 7 years ago

Also, sorry for messing up issues, but the Kindle wony open gitter chat. One thing you'va asked in InventorySlot:swapItems

Why not return null?

Because item, that is returned, is set to inventory current. Hm, also, we should move logic with comparing item types inside of that method.

Col-E commented 7 years ago

on biomes

It was just for resting real quick. I just picked random blocks.

egordorichev commented 7 years ago

Wow, just saw the video. I think, that's the GC bug.

egordorichev commented 7 years ago

Fixed. Chunks where not saving on gc.