fluxionary / minetest-futil Goto Github PK
View Code? Open in Web Editor NEWminetest mod implementing utility functions that i commonly use
License: Other
minetest mod implementing utility functions that i commonly use
License: Other
Your latest commit, "boxes", broke the mod.
https://github.com/fluxionary/minetest-futil/blob/main/minetest/player.lua#L138
I suggest adding this function:
function math.round(num)
return math.floor(num + 0.5)
end
I have not run any test, just read the code and noticed this scenario:
(I have used simplified item names)
destination list: { "", "", "cobble 12", "cobble 12" }
items to add: { "cobble 99", "cobble 6", "wood 4" }
from reading the code the resulting list would be full before wood ist tried and would return false even though there would be space.
{ "cobble 99", "cobble 6", "cobble 12", "cobble 12" } returning "wood 4"
Here is how I'm going to offer to fix mt-mods/pipeworks#61:
https://github.com/SwissalpS/minetest_pipeworks/blob/802c1e73c6670cc5631838733c98b125aa849698/autocrafter.lua#L35
Hello!
I was not on so no clue what they've done. Server automatically restarted. So no heavy error.
2023-07-02 00:11:23: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'awards' in callback item_OnUse(): ...st-master/bin/../mods/replacer/replacer/api/replacer.lua:199: attempt to index local 'to_place_def' (a nil value)
2023-07-02 00:11:23: ERROR[Main]: stack traceback:
2023-07-02 00:11:23: ERROR[Main]: ...st-master/bin/../mods/replacer/replacer/api/replacer.lua:199: in function <...st-master/bin/../mods/replacer/replacer/api/replacer.lua:119>
2023-07-18 05:39:21: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '' in callback item_OnUse(): ...test/minetest-master/bin/../mods/futil/minetest/item.lua:68: bad argument #1 to 'ipairs' (table expected, got nil)
2023-07-18 05:39:21: ERROR[Main]: stack traceback:
2023-07-18 05:39:21: ERROR[Main]: [C]: in function 'ipairs'
2023-07-18 05:39:21: ERROR[Main]: ...test/minetest-master/bin/../mods/futil/minetest/item.lua:68: in function 'get_primary_drop'
2023-07-18 05:39:21: ERROR[Main]: ...st-master/bin/../mods/replacer/replacer/api/replacer.lua:149: in function <...st-master/bin/../mods/replacer/replacer/api/replacer.lua:119>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.