Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Fix block disappear
Browse files Browse the repository at this point in the history
  • Loading branch information
MidnightTale committed Aug 29, 2023
1 parent 99b4c3d commit d84aef8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = 'xyz.hynse'
version = "2.3"
version = "2.3_a"

repositories {
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/xyz/hynse/foliaflow/FoliaFlow.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ private void setInitialConfigValues() {
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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void onFallingBlockToBlock(EntityChangeBlockEvent e){
dummy.teleportAsync(dummy.getLocation().add(0, FoliaFlow.TeleportOffset, 0));
dummy.setVelocity(dummyVel);
},
2
4
);
}
}
Expand Down
14 changes: 7 additions & 7 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# -----------------------------------------

0 comments on commit d84aef8

Please sign in to comment.