Futurepack Mod - Now with flyable Spaceships!

Futurepack Mod - Now with flyable Spaceships!

1M Downloads

[1.12] builder gadgets vs Futurepack crash

darkrahmir opened this issue ยท 5 comments

commented

So I use builder gadgets to do a good amount of my building. and when I used the building tool on a black metal slab it crashed my game and corrupted my world.

crash-2019-11-19_20.28.25-client.txt

commented
    @Override
    public ItemStack getPickBlock(IBlockState state, RayTraceResult target, World world,	BlockPos pos, EntityPlayer pl) 
    {
    	return new ItemStack(this, 1, damageDropped(world.getBlockState(pos)));
    }

world.getBlockState(pos) retunes AIR and not a slab. You should open an Issue at building gadgets and link it here.

commented

Here is a link to the issue i opened on the Building gadgets github
i also linked it back to here as well.

Direwolf20-MC/BuildingGadgets#412 (comment)

commented

I think that was at some point a work around for a bug. In 1.13/1.14 this is fixed, but I dont have the time to also fix this in 1.12 sadly.

commented

@mcenderdragon the Problem here seems to be that you are querying world.getBlockState(pos), but of course this won't be present - we cannot fake a complete world.
Please just use the blockstate we pass into this Method. I know that we should be catching exceptions from this call, but discarding those would just hide the Problem.

commented

We don't support 1.12.2 anymore.