block data
This commit is contained in:
parent
e82f50f3fe
commit
8f2613cf68
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ public class Bbsdfia extends JavaPlugin implements Listener {
|
|||
getLogger().info("Current world: " + currentWorld.getName());
|
||||
getLogger().info("End world: " + endWorld.getName());
|
||||
Location location = new Location(endWorld, loc.getX(), loc.getY(), loc.getZ());
|
||||
FallingBlock fallingBlock = endWorld.spawnFallingBlock(location, e.getBlockData());
|
||||
FallingBlock fallingBlock = endWorld.spawnFallingBlock(location, e.getBlock().getBlockData().getMaterial().createBlockData());
|
||||
fallingBlock.setVelocity(vel);
|
||||
} catch (Exception ex) {
|
||||
getLogger().severe("Error spawning falling block entity: " + ex.getMessage());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue