using world from location
This commit is contained in:
parent
4f981489d1
commit
0e16f9f22d
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ public class Bbsdfia extends JavaPlugin implements Listener {
|
||||||
|
|
||||||
//spawn new falling block in the end dimension and have same properties entity type and material same form entity that detect near end portal
|
//spawn new falling block in the end dimension and have same properties entity type and material same form entity that detect near end portal
|
||||||
|
|
||||||
FallingBlock dummy = end.spawnFallingBlock(location, ((FallingBlock) entity).getBlockData());
|
FallingBlock dummy = location.getWorld().spawnFallingBlock(location, ((FallingBlock) entity).getBlockData());
|
||||||
Vector dummyVel = vel.clone();
|
Vector dummyVel = vel.clone();
|
||||||
dummy.setVelocity(dummyVel);
|
dummy.setVelocity(dummyVel);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue