Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IndexOutOfBoundsException #146

Open
Sailren89 opened this issue Feb 25, 2023 · 0 comments
Open

java.lang.IndexOutOfBoundsException #146

Sailren89 opened this issue Feb 25, 2023 · 0 comments

Comments

@Sailren89
Copy link

Sailren89 commented Feb 25, 2023

Versions:
-Minecraft Forge: 14.23.5.2860
-Industrial Renewal: 0.21.8

What happens: nothing, crashes when it tries to read the crafttweaker scripts

What should happen: a normal start w/o a crash

Logs (if necessary): https://paste.ee/p/fgfrn

Additional Comments:

var ItensRemovidos as IItemStack[] = [

//IndustrialRenewal
industrialrenewal:chunk_hematite,
industrialrenewal:ir_manual,
industrialrenewal:ingot_steel,
industrialrenewal:sponge_iron,
industrialrenewal:steel_saw,
industrialrenewal:cart_hopper,
industrialrenewal:small_slab,
industrialrenewal:stick_iron,
industrialrenewal:stick_steel,
industrialrenewal:medkit,
industrialrenewal:item_fire_extinguisher,
industrialrenewal:safety_helmet.withTag({ench: [{lvl: 4 as short, id: 0 as short}]}),
industrialrenewal:safety_belt.withTag({ench: [{lvl: 4 as short, id: 2 as short}]}),
industrialrenewal:plow_iron,
industrialrenewal:cartridge_plus,
industrialrenewal:cartridge_minus,
industrialrenewal:cartridge_half,
industrialrenewal:cartridge_double,
industrialrenewal:cartridge_inverter,
industrialrenewal:coil_hv,
industrialrenewal:firebox_fluid,
industrialrenewal:battery,
industrialrenewal:motor,
industrialrenewal:small_wind_blade,
industrialrenewal:orevein_hematite,
industrialrenewal:block_hazard,
industrialrenewal:aisle_hazard,
industrialrenewal:caution_hazard,
industrialrenewal:defective_hazard,
industrialrenewal:fire_hazard,
industrialrenewal:radiation_hazard,
industrialrenewal:safety_hazard,
industrialrenewal:concrete,
industrialrenewal:block_steel,
industrialrenewal:lathe,
industrialrenewal:entity_detector,
industrialrenewal:flame_detector,
industrialrenewal:sensor_rain,
industrialrenewal:fuse_box,
industrialrenewal:traffic_light,
industrialrenewal:signal_indicator,
industrialrenewal:firstaid_kit,
industrialrenewal:record_player,
industrialrenewal:locker,
industrialrenewal:bunkbed,
industrialrenewal:gutter,
industrialrenewal:block_chimney,
industrialrenewal:electric_fence,
industrialrenewal:fence_big_column,
industrialrenewal:fence_big_corner,
industrialrenewal:wall_concrete,
industrialrenewal:fence_big_wire,
industrialrenewal:electric_gate,
industrialrenewal:razor_wire,
industrialrenewal:dam_intake,
industrialrenewal:dam_outflow,
industrialrenewal:fluorescent,
industrialrenewal:light,
industrialrenewal:industrial_floor,
industrialrenewal:isolator_hv,
industrialrenewal:energy_cable_lv,
industrialrenewal:energy_cable,
industrialrenewal:cable_tray,
industrialrenewal:fluid_pipe,
industrialrenewal:energy_switch,
industrialrenewal:valve_pipe_large,
industrialrenewal:infinity_generator,
industrialrenewal:solar_panel,
industrialrenewal:solar_panel_frame,
industrialrenewal:small_wind_turbine,
industrialrenewal:small_wind_turbine_pillar,
industrialrenewal:battery_bank,
industrialrenewal:cargo_loader,
industrialrenewal:electric_pump,
industrialrenewal:transformer_hv,
industrialrenewal:dam_turbine,
industrialrenewal:dam_generator,
industrialrenewal:dam_axis,
industrialrenewal:high_pressure_pipe,
industrialrenewal:chunk_loader,
industrialrenewal:conveyor_bulk,
industrialrenewal:steam_locomotive,
industrialrenewal:conduit_extension,
industrialrenewal:conduit_connector,
industrialrenewal:energy_cable_hv

];
for item in ItensRemovidos {
mods.jei.JEI.removeAndHide(item);
mods.jei.JEI.hide(item);

var ores = item.ores;
if (!isNull(ores)) {
	for entry in ores {
		entry.remove(item);
	}
}

val actualItem = (item.damage == 0 && item.isDamageable)
    ? item.anyDamage()
    : item;
furnace.remove(<*>, actualItem);
furnace.remove(actualItem);
recipes.remove(actualItem);

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant