Giter Site home page Giter Site logo

Comments (9)

Ghostrider231 avatar Ghostrider231 commented on August 16, 2024

According to your crash report, it seems to be related to this issue: #31

Interesting enough, I also have this crash report as well.

from wizardry.

Varg95 avatar Varg95 commented on August 16, 2024

yeah but it should have been fixed n 4.1.2 right?

from wizardry.

Electroblob77 avatar Electroblob77 commented on August 16, 2024

Could you tell me whether you edited the config file manually or used the in-game config menu to make this change? Could you also post your config file? It should help me see exactly what's wrong. Thanks.

from wizardry.

Ghostrider231 avatar Ghostrider231 commented on August 16, 2024

My crash happened when I edited the config manually.
For Example, I added rotd:dragon to the fire resistances list.

<
rotd:dragon
>

from wizardry.

flamechair avatar flamechair commented on August 16, 2024

I am also encountering this issue

from wizardry.

Not-February avatar Not-February commented on August 16, 2024

I've had this issue as well, and I was manually editing the config through a text editor.

from wizardry.

Pirog17000 avatar Pirog17000 commented on August 16, 2024

still happens.
if you put ANYTHING in resistances list, in any category, it won't load the server.
I've tried to put blaze into fire resistance and it instantly crashes the server on load after the change.
https://paste.ee/p/H1iHS - crash
https://paste.ee/p/dV8zR - config part

from wizardry.

Tora-B avatar Tora-B commented on August 16, 2024

Uhhh... That would be because Arrays.asList() only returns a wrapper around the original array, and not a new list. Arrays can't be resized like that, so you can't do things like add or remove elements. If you're going to use asList() pretty much every time you reference the array, you're not gaining much by using an array, and should just use a List instead. Better, yet, an EnumSet, since the use case matches exactly, and DamageType is already an enum.

from wizardry.

Electroblob77 avatar Electroblob77 commented on August 16, 2024

Yeah I think that's quite old code. I guess I originally chose an array to work nicely with the varargs parameter and I added more functionality afterwards when I really ought to have changed it. It would have worked if the Arrays.asList call was in a new ArrayList<>(...) but your way is better. Thanks.

from wizardry.

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.