From 248add0bc4424db672da9cfdeae0122370300db1 Mon Sep 17 00:00:00 2001 From: Oth3r <68134921+Oth3r@users.noreply.github.com> Date: Sun, 9 Mar 2025 14:55:48 -0500 Subject: [PATCH 1/3] fixes #17 --- src/main/java/one/oth3r/sit/utl/Utl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/one/oth3r/sit/utl/Utl.java b/src/main/java/one/oth3r/sit/utl/Utl.java index 4fd84bd..88e86b7 100644 --- a/src/main/java/one/oth3r/sit/utl/Utl.java +++ b/src/main/java/one/oth3r/sit/utl/Utl.java @@ -227,8 +227,7 @@ public class Utl { public static BlockPos getBlockPos(DisplayEntity.TextDisplayEntity entity) { // the entity Y level, adjusted // the adjustment - is the opposite of the offset applied in Entity.create() - double entityY = entity.getY() + (Y_ADJUSTMENT*-1); - + double entityY = entity.getBlockY() + (Y_ADJUSTMENT*-1); // get the block pos BlockPos pos = new BlockPos(entity.getBlockX(),(int)entityY,entity.getBlockZ()); // if above the block, subtract 1 From 44183128a5479abe7cb3da77e8bc0d7ed2f3ac7c Mon Sep 17 00:00:00 2001 From: Oth3r <68134921+Oth3r@users.noreply.github.com> Date: Sun, 9 Mar 2025 14:57:43 -0500 Subject: [PATCH 2/3] v1.2.3 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 9047fb5..ccbdc14 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,7 +10,7 @@ yarn_mappings=1.21.4+build.8 loader_version=0.16.10 # Mod Properties -mod_version=1.2.2+1.21.4 +mod_version=1.2.3+1.21.4 maven_group=one.oth3r file_name=sit! From 1fa208013f92807cc7402206a69bd5734d94d1ee Mon Sep 17 00:00:00 2001 From: Oth3r <68134921+Oth3r@users.noreply.github.com> Date: Sun, 9 Mar 2025 15:01:33 -0500 Subject: [PATCH 3/3] v1.2.3 changelog --- changelog.md | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/changelog.md b/changelog.md index 08b94ce..05b85df 100644 --- a/changelog.md +++ b/changelog.md @@ -1,15 +1,2 @@ -# v1.2.2 -more configuration! -### height-difference-limit -new server config for y difference limit for sitting - -limit how far above or below a block can compared to a player be to sit! - -**default**: 1 block above and below the player's y - -### fixes / changelog: -* fixed interaction-blocks not getting copied correctly when updating the file -* fixed actionbar text for toggling sitting ablity not displaying correctly -* added `height-difference-limit` `server-config` option -* added German localization (de_de) -* added Simplified Chinese localization (zh_ch) \ No newline at end of file +# v1.2.3 +* fixed not being able to sit when the Y level was below 0 \ No newline at end of file