tModLoader
No Lava Lava Slimes
11 comentarii
moss 27 sept. 2024 la 2:37 
i am the same with code on my own hobby projects, so understandable! have a nice day :>
RblDiver  [autor] 26 sept. 2024 la 15:07 
That is indeed a distinct possibility (highly probable imo). I'll admit I don't exactly know C#, mostly just fumbling around until something appears to work well enough. Essentially, I did an override on the HitEffect function, which inside the original has the bit to spawn the bit of lava. My override says, no, turn that tile's liquid amount to 0. So my guess is the game runs the original first, spawning lava, then runs mine, despawning lava.

Unfortunately that means I have no idea how to prevent your issue from happening moss, sorry.
moss 25 sept. 2024 la 19:20 
hi! i have encountered some errors with this mod- it seems like when a slime dies directly on a furniture / platform or any other lava-breakable object, it still breaks the object even though no lava spawns.
Is it possible that with this implementation the lava is still spawning but is being deleted in the same frame? It seems like the game still recognizes lava there for a moment.
A_Potitonear 25 iun. 2024 la 15:20 
El mejor mod que he visto, gracias
Altus 15 apr. 2024 la 22:31 
Thank you for this. I haven't been able to find a working version of this mod since tMod 1.4 released. Kudos!
RblDiver  [autor] 10 apr. 2024 la 13:28 
Update appears to be working so new version published, please let me know if you encounter errors.
RblDiver  [autor] 10 apr. 2024 la 9:48 
Note, initial test in a master getfixedboi world seemed to work, but testing in a regular expert world is not working. Apologies, will work on it when I can.
Willow 9 apr. 2024 la 12:06 
ahh i understand no worries!
RblDiver  [autor] 9 apr. 2024 la 11:16 
I suppose you could try it on the server side. I never do multiplayer so don't know how it'd work; took me a while to even figure out where the lava spawning appeared to occur in the first place :P
Willow 9 apr. 2024 la 0:52 
i wonder if its possible to make this a server side mod, there's a search category for server side mods and so far nobody has ever made one for some reason
RblDiver  [autor] 8 apr. 2024 la 17:28 
A note, I have this as version 0.1 because, while it appears to function as intended (aka lava slimes aren't spawning lava), there could be unintended consequences I'm not yet aware of.

(Implementation details, I'm overriding HitEffect, so it may be that other things which rely on this will be messed up (like no gore spawning etc), which is why this is still an early version until I can play and see what's going on.)