mojira.dev
MC-306582

Interacting with blocks sometimes causes the height limit warning to appear

After placing blocks during lag, the blocks are removed and the height limit message is shown.

Steps to Reproduce the issue:

  1. Get a diamond pickaxe and blocks

  2. Switch to survival mode

  3. Create a source of lag (Spawn about 2000 creepers)

  4. Start mining a tunnel and place blocks behind

  • When the server catches up, the blocks are reset and the build limit message appears

Expected Result:

The build limit message would not appear

Actual result:

The build limit message is displayed, even with blocks placed at deepslate level, in a normal overworld.

Linked issues

MC-307026 Getting kicked off a tamable animal while spamming right click on a block with high lag sometimes causes the height limit warning to appear. Resolved MC-307516 Spam right-clicking while dismounting an entity displays an error regarding the height limit Resolved MC-307557 When entering a boat world height warning may display Resolved MC-307657 Tilling on a dirt path may trigger "Height limit for building is 319" Resolved MC-307727 Hoeing dirt while on it can cause building height limit to pop up Resolved

Attachments

Comments 19

Thank you for helping us improve Minecraft! We saved your files:

[media][media][media][media][media]

This happened to me, but in a different way, when I was throwing Ender pearls: Apparently, I interacted with two blocks at the same time.

Hi!
Thank you for your report! 

  • Can you provide logs and crash dumps? You can find them at %appdata%\.minecraft

  • Did this issue occur on a LAN or on a multiplayer server?

Quick Links: 
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

There are no crash reports, here are some of the logs:

[media][media]

It was on singleplayer not open to LAN.

9 more comments

I encountered this false warning while taming a zombie horse.
The message "Height limit for building is 319" appears during repeated mount-and-get-thrown-off attempts for taming.

I found a zombie riding a zombie horse during a thunderstorm. The zombie was wearing a full set of leather armor.
I killed the zombie rider first, then tried to tame the zombie horse.
The false warning message "Height limit for building is 319" kept popping up when I mounted it and got thrown off while taming.

Is in 26.3 snapshot 9

I experienced this once, and only once, with a zero-cooldown ender pearl in 26.3 snapshot 10.

The bug is probably in net.minecraft.server.network.ServerGamePacketListenerImpl#handleUseItemOn

if (this.server.isUnderSpawnProtection(level, pos, this.player)) {
    this.player.sendSpawnProtectionMessage(pos);
} else if (this.awaitingPositionFromClient == null && level.mayInteract(this.player, pos)) {
...
} else {
    this.player.sendBuildLimitMessage(true, maxY);
}

where if this.awaitingPositionFromClient != null or level.mayInteract(this.player, pos) returns false: it defaults to sending high build limit message.

backspace256

(Unassigned)

Confirmed

Platform

Normal

Player

26.1 Snapshot 9, 26.1 Release Candidate 3, 26.1.1, 26.2 Snapshot 3, 26.3 Snapshot 9, 26.3

Retrieved