FabricMC / procyon

A fork of https://bitbucket.org/mstrobel/procyon/
Other
4 stars 3 forks source link

All integers are showing as booleans in enigma now #4

Open Blayyke opened 5 years ago

Blayyke commented 5 years ago

Fired up enigma today and all of the integers in minecraft's code (1.2.5) are showing as integers. All parameters that took item ids are having true passed to them. May be related to this change: https://github.com/FabricMC/Enigma/commit/44dd51db443839788fe23c55d6036d8fa3ba692b

liach commented 5 years ago

i think yes. after that change, livingentity class crashes for casting java lang Boolean to java lang Integer

Blayyke commented 5 years ago
        Item.ARROW = new Item(true).c(true, true).setRawName("arrow");
        Item.COAL = new CoalItem(true).c(true, false).setRawName("coal");
        Item.DIAMOND = new Item(true).c(true, true).setRawName("emerald");
        Item.IRON_INGOT = new Item(true).c(true, true).setRawName("ingotIron");
        Item.GOLD_INGOT = new Item(true).c(true, true).setRawName("ingotGold");

The true being passed to Items constructor is the items id, which is meant to be an integer. The parameters for c are also integers but have been changed to true.