-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Error message for liquids with liquid_range of 0 #12593
Comments
Just add |
That does stop the error message, thanks for the tip! |
Not a bug, just a poor & spammy error message that should be raised at load time when the invalid liquid def is made. |
Sounds like a definite bug to me, if liquid range is zero then the liquid should never try to flow anywhere and hence not need any flowing/source node defined. |
My reason for a node like this is to get the |
@sfan5 |
There now is a "pointability" API (introduced in #13992). If you have control over the tool, that should be sufficient. |
Minetest version
OS / Hardware
Operating system: Windows 10
CPU: Intel i7-6700hq
Summary
I made a liquid node that has a liquid_range of 0, and I get error messages in chat when the liquid is supposed to be updated (when it's placed and when nodes near it are changed)
Example Error Message:
Map::setNode(): Not allowing to place CONTENT_IGNORE while trying to replace "air" at (78,5,-34) (block (4,0,-3))
It has an error for each air node neighboring it and also itself.
Also I noticed if you add a
liquid_alternative_flowing
it will place that node around the liquid node, even though the liquid range is supposed to be 0.Steps to reproduce
add a mod with this code:
minetest.register_node("water_bug:liquid", { description = "Liquid test", tiles = {"default_stone.png"}, paramtype = "light", liquidtype = "source", liquid_range = 0, })
place this node somewhere and you should get the error message.
The text was updated successfully, but these errors were encountered: