1.13.2 Falling Block with disabled gravity falls on client

Discussion in 'Spigot Plugin Development' started by astaspasta, Mar 9, 2020.

  1. I try to spawn a falling block and disable the gravity so it can stay there forever but when it is spawned the falling block is actually there but on client it shows it falling very slowly or very fast. I am not why this is happening.
    Here is the spawn code
    Code (Text):
    FallingBlock fallingBlock = block.getLocation().getWorld().spawnFallingBlock(block.getLocation().add(0.5f,0,0.5f), block.getBlockData());
                fallingBlock.setGravity(false);
                fallingBlock.setDropItem(false);
                fallingBlock.setHurtEntities(false);
                fallingBlock.setTicksLived(Integer.MAX_VALUE);
                block.setType(Material.AIR);
    Is there something i can do?