GithubHelp home page GithubHelp logo

Comments (4)

Quarris avatar Quarris commented on August 15, 2024

Same thing happens with Nature's Aura (Ellpeck/NaturesAura#78).
If you want to check for leaves blocks and then cast, should do an instance of check instead, and then cast it.

I wanted to check excatly what you are doing the cast for, but I couldn't find the 1.15 repo. I'd think possibly to somehow decay the leave, but that (I think) can be done with properties, which wouldn't require the cast.
Anyways, hope you can fix it \o/

from fastleafdecay.

Olafski avatar Olafski commented on August 15, 2024

This should be fixed with v21, available on CurseForge.

@Quarris I'm not quite sure what you mean with doing it with properties. If you could explain that to me, I'd be happy to change it. I used to just schedule a block tick with Minecraft 1.14, but I can't find an equivalent method for 1.15 so I just call the "decay" method (func_225542_b_) directly. For that I need to cast to LeavesBlock. If there's a better way to do it, or if there actually is a method to schedule block ticks that I couldn't find, I'm all ears. :)

from fastleafdecay.

Olafski avatar Olafski commented on August 15, 2024

Update: I updated my development environment to the latest Forge MDK and the randomTick method is back. :) Was that what you meant, @Quarris ?

from fastleafdecay.

Quarris avatar Quarris commented on August 15, 2024

No, thinking about it now the property thing I mentioned doesnt make any sense. Its nice that its fixed, Ellpeck's been getting quite annoyed with the amount of reports on his github from this.

from fastleafdecay.

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.