Random Things

Random Things

44M Downloads

Tried breaking cobblestone with the Block Breaker

bubblesayoyo opened this issue ยท 3 comments

commented
commented
commented

@lumien231, I've had a quick glance over your code regarding the fakePlayer.
I see you're using a WeakReference on the player, is it possible it gets garbage collected after some time and after some time when it tries to break a block it is null?

Update: maybe not:

if (fakePlayer.get() != null)
{
    fakePlayer.get().interactionManager.tryHarvestBlock(targetPos);
}
commented

Will talk to the dev of FTB Utilities