Giter Club home page Giter Club logo

minetest-futil's People

Contributors

fluxionary avatar yl-whosit avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

minetest-futil's Issues

fake_inventory.room_for_all could fail to find space

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

Error on item.lua

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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.