[SPIGOT-6389] Cloning tile entity causes errors in console Created: 06/Mar/21  Updated: 07/Mar/21  Resolved: 07/Mar/21

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: novarlynx Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: Error, TileEntity, spigot

Version: This server is running CraftBukkit version 3013-Spigot-73fb609-0cd8f19 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

If you use the clone command on a tile entity (for example a hopper), you see an output like this in the console:

[00:35:26] [Server thread/ERROR]: Block at -8,246, 36, 1,554 is Block{minecraft:barrier} but has net.minecraft.server.v1_16_R3.TileEntityHopper@3faed881. Bukkit will attempt to fix this, but there may be additional damage that we cannot recover.

Steps to reproduce:
1. Place a tile entity (Hopper, dropper, chest, etc)
2. Use the /clone command to clone it to somewhere

I found with testing that doing a simple clone command such as
/clone -8246 36 1553 -8246 36 1553 -8246 36 1554
does not produce an error the first time, but if you do it again, then you get the error.

Also, you always get the error if you add the args "replace move" to the command:
/clone -8246 36 1553 -8246 36 1553 -8246 36 1554 replace move

I found this earlier issue which is marked as Resolved but it seems to have returned.
https://hub.spigotmc.org/jira/browse/SPIGOT-5472

I also found this related commit from late 2019:
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/75fac431cfc807ccf05629ce4796db958ee112e6

Thank you, have a nice day.



 Comments   
Comment by Black Hole [ 07/Mar/21 ]

This has the same root cause as SPIGOT-5367

Generated at Thu Apr 03 16:47:53 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.