Giter Site home page Giter Site logo

Comments (5)

JDCodeIt avatar JDCodeIt commented on May 28, 2024

This seems to be a weird side effect of the call to minetest.clear_craft. The bug was introduced with #124

If you comment out this in redefinitions.lua, the dark_green wool recipe works.

This could be a deeper bug in the clear_craft function, though.

from moreblocks.

JDCodeIt avatar JDCodeIt commented on May 28, 2024

In irc discussion today, p_gimeno found the root cause is in this version of minetest game, which essentially has created two recipes with the same input. One produces green wool, and the other produces dark green wool. The order of these recipes in the system were such that the dark green (proper) recipe occurred first. Calling the clear_craft function has the side effect of inverting the list of registered recipes so that the lighter green recipe came first.
MTG has been updated to remove the duplicate recipe input. See https://github.com/minetest/minetest_game/commits/6f80fd3737cd4de30e548dd48bc0ab8c288d9930

Thanks p_gimeno!

from moreblocks.

Calinou avatar Calinou commented on May 28, 2024

@JDCodeIt Is this issue now solved in 5.0.0? If so, I'll close it.

from moreblocks.

 avatar commented on May 28, 2024

Technically it's solved in MTG 5.0.0. See also minetest/minetest#8427 for the remaining bug.

Edit: To clarify, the remaining bug does not produce the effect reported here, but the reversal of the list caused by the clear_craft call may be causing side effects in other mods. But that's not for moreblocks to fix (unless a new bogus call to clear_craft is desired to re-reverse the list until 8427 is fixed).

from moreblocks.

Calinou avatar Calinou commented on May 28, 2024

@pgimeno Thanks for clarifying this 😃 I'll close this issue now.

from moreblocks.

Related Issues (20)

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.