PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
9.69k stars 2.26k forks source link

Duplicate entity UUID issue #10449

Open WarnDa opened 4 months ago

WarnDa commented 4 months ago

Expected behavior

This settings should work and ignore duplicate UUID instead of deleting entity

    duplicate-uuid:
      mode: silent
      safe-regen-delete-range: 0

(also tested safe-regen-delete-range: 1)

Observed/Actual behavior

When I paste twice the same item_frame it deletes it and send an error in the console

[15:36:41 WARN]: [EntityLookup] Entity uuid already exists: a8d8f021-32a9-4f0a-bc6b-e3be5bdd6f6e, mapped to EntityItemFrame['Item Frame'/397, uuid='a8d8f021-32a9-4f0a-bc6b-e3be5bdd6f6e', l='ServerLevel[SuperiorWorld]', x=1200.50, y=103.50, z=597.03, cpos=[75, 37], tl=217, v=true], can't add EntityItemFrame['Item Frame'/432, uuid='a8d8f021-32a9-4f0a-bc6b-e3be5bdd6f6e', l='ServerLevel[SuperiorWorld]', x=1200.50, y=103.50, z=1197.03, cpos=[75, 74], tl=0, v=false]

Steps/models to reproduce

I'm using a plugin to add image on maps and paste it on every created island for players Plugin to generates maps :

Command used : imageframe create test https://i.imgur.com/2ErVis6.png 4 5 Video : https://youtu.be/T1ghIi3cNic After importing the schematic : https://youtu.be/aRq6WsZQlX4

Plugin and Datapack List

ImageFrame, ProtocolLib, SuperiorSkyBlock 2

Paper version

This server is running Paper version git-Paper-493 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: a6b6ecd) You are running the latest version Previous version: git-Paper-459 (MC: 1.20.4)

Other

Also happened if I had COW into the schematic

WarnDa commented 4 months ago

Edit : superiorskyblock fixed on his side to change uuid of entities on schematic, but the issue is still existing on paper side with entity using the same uuid