senseiwells / EssentialClient

EssentialClient is a client side mod originally forked from Carpet Client for 1.15.2 that implements new client side features
MIT License
77 stars 14 forks source link

Script crashing game #29

Closed erv123 closed 2 years ago

erv123 commented 2 years ago

The following script runs fine for a while and then the game crashes

client = getMinecraftClient(); world = client.getWorld(); me = client.getPlayer(); me.look(54.1,70.9); blockCheck = world.getBlockAt(-6913,100,18869); itemCheck = me.getHeldItem(); me.message(itemCheck);

while(me.getHeldItem() == itemCheck){ while(world.getBlockAt(-6913,108,18869)==blockCheck){ me.use("once"); if(me.getHeldItem()!=itemCheck) return; if(world.getBlockAt(-6912,112,18869)==blockCheck){ sleep(100); } else{ sleep(500); } } sleep(5000); }

the launcher told me this: The game crashed whilst unexpected error Error: java.util.ConcurrentModificationException Exit Code: -1

full crash report crash-2021-12-27_18.33.52-client.txt

senseiwells commented 2 years ago

Can you provide mod version, and game version? ^ Ignore this I disregarded the fact the crash report has this info xD