wrong y level
This commit is contained in:
parent
6e7fd76f54
commit
609b0f68df
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ public class FoliaFlow extends JavaPlugin implements Listener {
|
||||||
for (Entity entity : world.getEntities()) {
|
for (Entity entity : world.getEntities()) {
|
||||||
if (entity.getType() == EntityType.FALLING_BLOCK && entity.getWorld().getEnvironment() == World.Environment.THE_END) {
|
if (entity.getType() == EntityType.FALLING_BLOCK && entity.getWorld().getEnvironment() == World.Environment.THE_END) {
|
||||||
Location loc = entity.getLocation();
|
Location loc = entity.getLocation();
|
||||||
if (loc.getBlockX() == 100 && loc.getBlockY() == 49 && loc.getBlockZ() == 0) {
|
if (loc.getBlockX() == 100 && loc.getBlockY() == 48.5 && loc.getBlockZ() == 0) {
|
||||||
// Set the initial velocity of the falling block only if it doesn't have a velocity stored
|
// Set the initial velocity of the falling block only if it doesn't have a velocity stored
|
||||||
if (!velocitiesMap.containsKey(entity)) {
|
if (!velocitiesMap.containsKey(entity)) {
|
||||||
int index = counter % 4;
|
int index = counter % 4;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue