OpenBlocks

OpenBlocks

56M Downloads

flags not dropping as items when block below broken

Mumberthrax opened this issue ยท 3 comments

commented

version 1.2.2 of openblocks. discovered on my installation of FTB 'Direwolf20' pack with a handful of other mods added. Tested on FTB 'Lite' pack - same issue: flag doesn't drop as an item when the block it is on top of is broken. If this behavior is intentional, then I apologize. This is my first bug report on github, so if i goofed then I apologize for that as well.

commented

The Flag is a SurfaceAttachment object ( Which means that our code should automatically break it when the block below it is broken. ).

Only thing I can think of is if there is a misunderstanding with the arguments to onNeighbourBlockChange, or something is passing in the wrong arguments.

Perhaps the x,y,z is of the neighbour, not of our own block, but I didn't think that was the case.
The code in question is here:
https://github.com/OpenMods/OpenModsLib/blob/master/src/openmods/block/OpenBlock.java#L235

I likely wont have the time this week to do any coding at all, but someone will be sure to fix this bug soon.

Could I suggest that you get the latest OpenBlocks from http://openmods.info:8080 (You will also need OpenModsLib), and see if the bug still exists ?

commented

I put openmodslib #54 and openblocks-experimental #93 in the mods folder, disabled my original copy of the mod, loaded up a creative world, cheated in the flags and blocks (grass, stone, cobble, wool, oak planks, gravel, sand), changed to survival mode, and when the block below the flag is broken the flag still disappears without dropping as an item.

edit: i did not intend for those numbers to link to other issues. not sure how to prevent that.

commented