Coder Social home page Coder Social logo

Crash/bug about minecraft-gentleharvest HOT 8 CLOSED

Moobien avatar Moobien commented on August 16, 2024
Crash/bug

from minecraft-gentleharvest.

Comments (8)

Domochevsky avatar Domochevsky commented on August 16, 2024

Hm...

java.lang.IllegalArgumentException: Cannot get property PropertyInteger{name=age, clazz=class java.lang.Integer, values=[0, 1, 2, 3, 4, 5, 6, 7]} as it does not exist in BlockStateContainer{block=harvestcraft:pamparsnipcrop, properties=[age]}

block=harvestcraft:pamparsnipcrop <- that seems to be the block that causes Gentle Harvest to stumble, by unexpectedly not having an age property despite being a crop.

So the key person to talk to would be the maker of HarvestCraft. What we could do here, however, is add a bit of hardening, so it doesn't outright fall over when encountering such a thing.

Maybe surround int age = blockState.getValue(property); in Event_Listener.java line 125 with ...um, why is that crashing anyway? Just because the property doesn't exist doesn't mean that Minecraft has to explode. Just return 0 or some other default. Someone coded it to be like this. o_O

Either way, a try/catch would solve that on our end. Catch and just not touch the block if it has no age, since it probably doesn't want to be messed with.

from minecraft-gentleharvest.

Moobien avatar Moobien commented on August 16, 2024

The crashes started when i powered up a IF Plant Interactor

from minecraft-gentleharvest.

EPIICTHUNDERCAT avatar EPIICTHUNDERCAT commented on August 16, 2024

@Moobien yep, thats cus of what he said, block=harvestcraft:pamparsnipcrop is not made correctly / made different, which causes what we do, which ShOuLdNt break, break. so now I need to update it just cus one mod can do things correctly :P.

from minecraft-gentleharvest.

EPIICTHUNDERCAT avatar EPIICTHUNDERCAT commented on August 16, 2024

ill work on this when i get the time. for now i suggest u remove that crop.

from minecraft-gentleharvest.

Moobien avatar Moobien commented on August 16, 2024

Ok :)

from minecraft-gentleharvest.

 avatar commented on August 16, 2024

To the OP;
I have encountered this issue also; I had fixed it by checking out what mods were installed- turns out I installed SimpleHarvest + GentleHarvest and that was conflicting against each other.
Hope this helps.

from minecraft-gentleharvest.

 avatar commented on August 16, 2024

After reviewing this further, the same issue encounters with ChocoCraft 3.
I hope the developer finds a fix.

from minecraft-gentleharvest.

Domochevsky avatar Domochevsky commented on August 16, 2024

Fixed in #4

from minecraft-gentleharvest.

Related Issues (1)

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.