Tried breaking cobblestone with the Block Breaker
bubblesayoyo opened this issue ยท 3 comments
Here's the issue on FTB Utilities:
https://github.com/LatvianModder/FTBUtilities/issues/145
@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);
}