Hello! I am working on a mod for me and my brother like of like lucky blocks. I am starting with the basics and slowly advancing the mod. I recently ran into an issue where, when i break the block, it drops two of the drops. Not one type. My code works like this:
Block gets destroyed
Block calls DropDB.getRandomDrop
DropDB gets a random drop from an array of drops and returns in
Block loops the drops and spawns the items above it
It works but when I break it two drops come out. One which I can pick up, and the other which is strangely still registered as an entity. But I cannot pick it up. All of my code it posted on GitHub here: https://github.com/xXXIMMATTHEWXXx/BroCubes