* 1 will cause a block update.
* 2 will send the change to clients.
* 4 will prevent the block from being re-rendered.
* 8 will force any re-renders to run on the main thread instead
* 16 will prevent neighbor reactions (e.g. fences connecting, observers pulsing).
* 32 will prevent neighbor reactions from spawning drops.
* 64 will signify the block is being moved.
I tried with the flags 1 and 2:
Block.replaceBlock(
world.getBlockState(bp),
Blocks.FARMLAND.getDefaultState(),
world, bp, 1 | 2
);
And it doesn't seem to have worked. I still have ghost blocks (even tried a fresh world). Which flags should I use?
PS: The UseHoeEvent is deprected:
@Cancelable
@HasResult
@Deprecated
public class UseHoeEvent extends PlayerEvent
EDIT:
It works now on serverside, since flag 2 sends the change to the client. But there still are ghost blocks (it gets very laggy when a run on the created farmland, its like walking through thick transparent laggy liquid, but you are able to walk through eventually)