Coder Social home page Coder Social logo

Comments (5)

John-Paul-R avatar John-Paul-R commented on July 17, 2024

Update: I'm fairly certain that my proposed fix will not work, as the MaterializationUtils.getDurability() method I referenced is not an instance method of the ItemStack class (the variable tool is of type ItemStack). Perhaps this method should be added to items.MaterializedMiningTool (or classes that implement it) directly? Edit: I misunderstood how those classes operate.

from materialisation.

shedaniel avatar shedaniel commented on July 17, 2024

I can try to go over it tomorrow.

from materialisation.

John-Paul-R avatar John-Paul-R commented on July 17, 2024

Upon testing again, I found that while the exact issue mentioned above no longer occurs, a new one has been introduced. Veinminer now properly activates for Materialisation pickaxes, but the way that the durability is set after the action is complete is broken. The durability (mt_durability tag) is set to the difference between the tool's durability value at the time it broke the block and its max durability. Ex: if you have a materialized iron pickaxe (max durability 250) at durability 240, and veinmine with it, its durability will then be set to 10. This results in instant pickaxe breakage if veinmining occurs at max durability.

I believe this may be in some way caused by the fact that MoreEnchantments calls the method: ItemStack.damage(), which does not have an implementation in Materialisation's durability system, but I am not sure.

from materialisation.

John-Paul-R avatar John-Paul-R commented on July 17, 2024

This issue seems to be resolved in the latest update.

from materialisation.

shedaniel avatar shedaniel commented on July 17, 2024

Yep it should be

from materialisation.

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.