Merge branch '1.20.6' into 1.20.4

# Conflicts:
#	gradle.properties
This commit is contained in:
Oth3r 2025-03-14 13:10:59 -05:00
commit 134496d7d0
4 changed files with 8 additions and 22 deletions

View file

@ -1,5 +1,5 @@
plugins { plugins {
id 'fabric-loom' version '1.8-SNAPSHOT' id 'fabric-loom' version '1.10-SNAPSHOT'
id 'maven-publish' id 'maven-publish'
id 'com.modrinth.minotaur' version '2.+' id 'com.modrinth.minotaur' version '2.+'
id 'net.darkhax.curseforgegradle' version '1.1.+' id 'net.darkhax.curseforgegradle' version '1.1.+'
@ -14,8 +14,8 @@ base {
} }
repositories { repositories {
maven { url "https://maven.terraformersmc.com/releases/" } maven { url = "https://maven.terraformersmc.com/releases/" }
maven { url "https://maven.isxander.dev/releases" } maven { url = "https://maven.isxander.dev/releases" }
} }
loom { loom {
@ -33,7 +33,7 @@ dependencies {
} }
processResources { processResources {
filteringCharset "UTF-8" filteringCharset = "UTF-8"
var replaceProperties = [ var replaceProperties = [
version : project.version, version : project.version,

View file

@ -1,15 +1,2 @@
# v1.2.2 # v1.2.3
more configuration! * fixed not being able to sit when the Y level was below 0
### 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)

View file

@ -10,7 +10,7 @@ yarn_mappings=1.20.4+build.3
loader_version=0.15.11 loader_version=0.15.11
# Mod Properties # Mod Properties
mod_version=1.2.2+1.20.4 mod_version=1.2.3+1.20.4
maven_group=one.oth3r maven_group=one.oth3r
file_name=sit! file_name=sit!

View file

@ -226,8 +226,7 @@ public class Utl {
public static BlockPos getBlockPos(DisplayEntity.TextDisplayEntity entity) { public static BlockPos getBlockPos(DisplayEntity.TextDisplayEntity entity) {
// the entity Y level, adjusted // the entity Y level, adjusted
// the adjustment - is the opposite of the offset applied in Entity.create() // 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 // get the block pos
BlockPos pos = new BlockPos(entity.getBlockX(),(int)entityY,entity.getBlockZ()); BlockPos pos = new BlockPos(entity.getBlockX(),(int)entityY,entity.getBlockZ());
// if above the block, subtract 1 // if above the block, subtract 1