Skip to content

Commit

Permalink
update to 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen1212055 committed Jan 20, 2024
1 parent f39f499 commit 9f82b41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repositories {
}

dependencies {
paperweight.paperDevBundle("1.20-R0.1-SNAPSHOT")
paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT")

implementation("xyz.jpenilla", "reflection-remapper", "0.1.0-SNAPSHOT")
}
6 changes: 3 additions & 3 deletions src/main/java/com/owen1212055/customname/CustomName.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import net.minecraft.network.protocol.Packet;
import net.minecraft.network.protocol.game.ClientGamePacketListener;
import org.bukkit.Bukkit;
import org.bukkit.craftbukkit.v1_20_R1.entity.CraftEntity;
import org.bukkit.craftbukkit.v1_20_R1.entity.CraftPlayer;
import org.bukkit.craftbukkit.v1_20_R3.entity.CraftEntity;
import org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;
Expand Down Expand Up @@ -41,7 +41,7 @@ public class CustomName {
this.targetEntity = entity;

net.minecraft.world.entity.Entity nmsEntity = ((CraftEntity) entity).getHandle();
double ridingOffset = nmsEntity.getPassengersRidingOffset();
double ridingOffset = nmsEntity.getPassengerRidingPosition(null).subtract(nmsEntity.position()).y;
double nametagOffset = nmsEntity.getNameTagOffsetY();

// First, negate the riding offset to get to the bounding of the entity's bounding box
Expand Down

0 comments on commit 9f82b41

Please sign in to comment.