This commit is contained in:
MidnightTale 2023-04-11 20:35:55 +07:00
commit e82f50f3fe

View file

@ -57,7 +57,7 @@ public class Bbsdfia extends JavaPlugin implements Listener {
getLogger().info("Current world: " + currentWorld.getName()); getLogger().info("Current world: " + currentWorld.getName());
getLogger().info("End world: " + endWorld.getName()); getLogger().info("End world: " + endWorld.getName());
Location location = new Location(endWorld, loc.getX(), loc.getY(), loc.getZ()); Location location = new Location(endWorld, loc.getX(), loc.getY(), loc.getZ());
FallingBlock fallingBlock = endWorld.spawnFallingBlock(location, e.getBlock().getBlockData()); FallingBlock fallingBlock = endWorld.spawnFallingBlock(location, e.getBlockData());
fallingBlock.setVelocity(vel); fallingBlock.setVelocity(vel);
} catch (Exception ex) { } catch (Exception ex) {
getLogger().severe("Error spawning falling block entity: " + ex.getMessage()); getLogger().severe("Error spawning falling block entity: " + ex.getMessage());