ChiriVulpes / soulus

A Minecraft mod. You must sift through the ashes of the dead to restore life to the world.
https://soulus.info
Other
3 stars 3 forks source link

Infinite potion effects from summoned creepers #28

Closed Thyriel closed 6 years ago

Thyriel commented 6 years ago

Not sure if this is a bug or a feature, but when a creeper explodes while near a player you get the creepers potion effect with endless duration. This doesn't seem to happen when you kill him or with other mobs

ChiriVulpes commented 6 years ago

Well that's amusing. I'll have to consider how I can prevent that. This is caused by a vanilla feature where creepers leave lingering potion area of effects where they explode. I guess the effect duration is based on the duration of the effect on the creeper.

I guess this isn't terrible, because you can drink milk to get rid of the effect if it's negative. I'll probably just reduce the default effect duration on summoned mobs from forever to around five minutes, maybe.

Thyriel commented 6 years ago

The issue is less that you could get negative effects but more that it's pretty op being able to stack a lot positive effects that way, especially in early game. (and it's a bit annoying having the particles all the time around you). Reducing the timer seems a good solution to me, that way you can't make much use of the positive effects at all.

Btw somehow it's always when i change summoner.json generating a summoner.err.json that's according to a file comparison tool completely identical.

ChiriVulpes commented 6 years ago

Can you send the file that's doing it? I'll see if I can reproduce on my end.

Thyriel commented 6 years ago

https://pastebin.com/DbgsMsTN Nothing changed from the default file except duration to 5mins

edit: interestingly it's only happening after i saved the file (with Wordpad). If i don't touch it again the err file isn't regenerated. Maybe just a textfile saving problem with wordpad

ChiriVulpes commented 6 years ago

There are two checks that happen for a config file to be regenerated:

I added rewriting the second check to my todo. Once it's consistent, I can remove the first check, because it won't be necessary.

ChiriVulpes commented 6 years ago

Fixed as of v3.2.0