tw+
This commit is contained in:
parent
b1ba1fdede
commit
0561f864a8
1 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ public class FoliaFlow extends JavaPlugin implements Listener {
|
||||||
if(movingTo != null && movingTo.getType() == Material.END_PORTAL){
|
if(movingTo != null && movingTo.getType() == Material.END_PORTAL){
|
||||||
Location spawnLoc = movingTo.getLocation();
|
Location spawnLoc = movingTo.getLocation();
|
||||||
spawnLoc.setX(spawnLoc.getX()+0.5);
|
spawnLoc.setX(spawnLoc.getX()+0.5);
|
||||||
spawnLoc.setY(spawnLoc.getY()-0.1);
|
spawnLoc.setY(spawnLoc.getY()-0.25);
|
||||||
spawnLoc.setZ(spawnLoc.getZ()+0.5);
|
spawnLoc.setZ(spawnLoc.getZ()+0.5);
|
||||||
|
|
||||||
FallingBlock dummy = loc.getWorld().spawnFallingBlock(spawnLoc, ((FallingBlock) entity).getBlockData());
|
FallingBlock dummy = loc.getWorld().spawnFallingBlock(spawnLoc, ((FallingBlock) entity).getBlockData());
|
||||||
|
|
@ -70,7 +70,7 @@ public class FoliaFlow extends JavaPlugin implements Listener {
|
||||||
dummyVel.setY(-dummyVel.getY());
|
dummyVel.setY(-dummyVel.getY());
|
||||||
dummyVel.multiply(new Vector(2, 1, 2));
|
dummyVel.multiply(new Vector(2, 1, 2));
|
||||||
|
|
||||||
dummyVel.add(new Vector(0, 2, 0));
|
dummyVel.add(new Vector(0, 1, 0));
|
||||||
|
|
||||||
dummy.setVelocity(dummyVel);
|
dummy.setVelocity(dummyVel);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue