using world from location

This commit is contained in:
MidnightTale 2023-04-11 23:27:28 +07:00
commit 0e16f9f22d

View file

@ -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
FallingBlock dummy = end.spawnFallingBlock(location, ((FallingBlock) entity).getBlockData());
FallingBlock dummy = location.getWorld().spawnFallingBlock(location, ((FallingBlock) entity).getBlockData());
Vector dummyVel = vel.clone();
dummy.setVelocity(dummyVel);