Overloaded

Overloaded

15M Downloads

Server crash with ore excavation overloaded and ex2

tyler489 opened this issue ยท 2 comments

commented

Minecraft Version: maybe i dont wanna replace 1.12

Overloaded Version: 0.0.26

Seems that float chance = event.getDropChance(); for(ItemStack stack: event.getDrops()) { if (world.rand.nextFloat() <= chance) { EntityItem toSpawn = new EntityItem(world, player.posX, player.posY, player.posZ, stack); world.spawnEntity(toSpawn); is being called both by overloaded and by ore excavation. Although i could be wrong https://pastebin.com/3d4iZAtx

commented

A work around might be to get item position and compair it to player position if its the same the cancel the item spawn event?

commented

Ended up being from ExU2 using an Immutable List, Only crashed because using sponge.

I have added some code as a work around but ExU2 should not be using Immutable List for HarvestDropEvents