-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spawn protection setting bugged #227
Comments
Probably need to introduce an envIntMap similar to the envBoolMap template function. |
Hi, |
I'm worried that still wouldn't work. A zero is just as "false-y" as the absence of a value, so I'm not sure how your snippet can differentiate and might coerce all absent values into zero integers. |
Right, after some tests the snippet don't work because of string casting. But this one works: Tested with:
|
Ah yes, the |
yeah it could work to also resorb |
A PR would be great if you wanted to switch it to that. |
The spawn protection config setting cannot be set to "0" as mentioned in the docs as it is currently bugged. Setting it to 0 will cause the envmap to evaluate to false and instead exclude the
SPAWN_PROTECTION
environment variable rather than including it as intended.minecraft-server-charts/charts/minecraft/templates/_helpers.tpl
Line 28 in ba5b3ba
minecraft-server-charts/charts/minecraft/templates/deployment.yaml
Line 174 in ba5b3ba
The text was updated successfully, but these errors were encountered: