This commit is contained in:
MidnightTale 2023-04-11 20:27:29 +07:00
commit b661ddceeb

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, ((FallingBlock) location.getWorld()).getBlockData()); FallingBlock fallingBlock = endWorld.spawnFallingBlock(location, ((FallingBlock) endWorld).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());