Skip to content

Commit

Permalink
Revert "Ensure target chunk is loaded"
Browse files Browse the repository at this point in the history
This reverts commit 4346312.
  • Loading branch information
wdog5734 committed Oct 18, 2024
1 parent b87ff18 commit 0d0bfe8
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,6 @@ public boolean canCollideWithBukkit(Entity entity) {
Bukkit.getPluginManager().callEvent(event);
}

@Inject(method = "setPosRaw", at = @At("RETURN"))
private void banner$setPosRaw(double x, double y, double z, CallbackInfo ci) {
if (!this.level.isClientSide && !this.isRemoved()) this.level.getChunk((int) Math.floor(x) >> 4, (int) Math.floor(z) >> 4); // Banner - ensure target chunk is loaded.
}

@Inject(method = "setRot", at = @At(value = "HEAD"))
public void banner$infCheck(float yaw, float pitch, CallbackInfo ci) {
// CraftBukkit start - yaw was sometimes set to NaN, so we need to set it back to 0
Expand Down

0 comments on commit 0d0bfe8

Please sign in to comment.