Fix block disappear

This commit is contained in:
MidnightTale 2023-08-29 19:09:05 +07:00
commit d84aef8126
4 changed files with 11 additions and 11 deletions

View file

@ -3,7 +3,7 @@ plugins {
}
group = 'xyz.hynse'
version = "2.3"
version = "2.3_a"
repositories {
mavenCentral()

View file

@ -48,11 +48,11 @@ public class FoliaFlow extends JavaPlugin {
config.setDefaults(defaultConfig);
boolean isFolia = SchedulerUtil.isFolia();
if (!config.contains("horizontal_coefficient")) {
double horizontalCoefficient = isFolia ? 1.499 : 1.3;
double horizontalCoefficient = isFolia ? 1.499 : 2;
config.set("horizontal_coefficient", horizontalCoefficient);
}
if (!config.contains("teleport_offset")) {
double telportCoefficient = isFolia ? 0.5 : 6;
double telportCoefficient = isFolia ? 0.5 : 2.4;
config.set("teleport_offset", telportCoefficient);
}
try {

View file

@ -42,7 +42,7 @@ public class PortalWatcher implements Listener {
dummy.teleportAsync(dummy.getLocation().add(0, FoliaFlow.TeleportOffset, 0));
dummy.setVelocity(dummyVel);
},
2
4
);
}
}

View file

@ -3,17 +3,17 @@
# If you find values that seems more vanilla please create a PR
# https://github.com/Hynse/FoliaFlow
# Optimize value for horizontal_coefficient
# Default value for horizontal_coefficient
# - Folia (1.499)
# - Paper (1.3)
horizontal_coefficient: 1.3
# - Paper (2)
horizontal_coefficient: 2
# -----------------------------------------
vertical_coefficient: -1.7
spawn_height: 0.08
# Optimize value for teleport_offset
# - Folia (0.5 or -1)
# - Paper (6)
teleport_offset: 0.5
# Default value for teleport_offset
# - Folia (0.5)
# - Paper (2.4)
teleport_offset: 2.4
# -----------------------------------------