Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quark Storage Crate items disappear #2

Open
mikkolukas opened this issue Jan 26, 2025 · 3 comments
Open

Quark Storage Crate items disappear #2

mikkolukas opened this issue Jan 26, 2025 · 3 comments

Comments

@mikkolukas
Copy link
Owner

Minecraft 1.20.1
Forge

Quark have a conflict with some other mod, where the content of Storage Crates is wiped.
When the server is closed the items does not appear in the region files.

When Quark is alone on the server the issue does not appear.

@mikkolukas mikkolukas changed the title Quarch Storage Crate items disappear Quark Storage Crate items disappear Jan 26, 2025
@mikkolukas
Copy link
Owner Author

Turns out to be a conflict between Quark, C2ME and Smooth Chunk.

I have created an issue here: github.com/VazkiiMods/Quark/issues/5132

Minecraft 1.20.1
Forge 47.3.25 (as latest Forgified Fabric API crashes on latest Forge 47.3.27 (link))

Mods
Quark 1.20.1-4.0-460
Quark Oddities 1.20.1

Concurrent Chunk Management Engine (Fabric) (aka C2ME) 0.2.0+alpha.11.15+1.20.1
Server Performance - Smooth Chunk Save (aka Smooth Chunk Mod) 1.20.1-4.0

Dependencies
Zeta 1.20.1-1.0-24
Cupboard Utilities 1.20.1-2.7
Sinytra Connector 1.0.0-beta.46+1.20.1
Forgified Fabric API 0.92.2+1.11.10+1.20.1

@mikkolukas
Copy link
Owner Author

It turns out that I can also reproduce the bug if I use:
Fast Async World Save 1.20.1-2.3 instead of (or together with) Smooth Chunk Mod.

@mikkolukas
Copy link
Owner Author

edit: I have further narrowed the scope and can now consistently reproduce the bug in an dedicated server <-> client environment, but reducing the mod list.


Minecraft 1.20.1
Forge 47.3.25 (as latest Forgified Fabric API crashes on latest Forge 47.3.27 (link))

Mods

Install on Client and server

Quark 1.20.1-4.0-460
Quark Oddities 1.20.1

Dependencies
Zeta 1.20.1-1.0-24

Install on Server only

Concurrent Chunk Management Engine (Fabric) (aka C2ME) 0.2.0+alpha.11.15+1.20.1
Server Performance - Smooth Chunk Save (aka Smooth Chunk Mod) 1.20.1-4.0

Dependencies
Sinytra Connector 1.0.0-beta.46+1.20.1
Forgified Fabric API 0.92.2+1.11.10+1.20.1
Cupboard Utilities 1.20.1-2.7

Why am I posting this as a Quark issue?

Because it is ONLY the Quark Storage Crate that have this issue. Other interactive blocks (both Quark and vanilla) do not have this issue, leading me to suspect that the code for the Storage Crate could benefit of a small review.

I know the elephant in the room is that both C2ME and Smooth Chunk handles chunks and that the bug very well could be between those two, but then the issue would also exist for other interactive blocks.

Somehow quark handles it gracefully for other Quark interactive blocks. My hope is that the Storage Crate can have the same graceful behavior - even if the root of the problem should be a conflict between the other mods.

Quark do not have the responsibility to fix bugs for other mods, but it seems like Quark already have a working solution at hand in those other interactive blocks, so the fix is potentially easy to do (maybe? 😬)

How to reproduce

1. Launch a new instance as detailed above
2. Click Singleplayer
3. Click Create New World (making it a Creative one is probably a good idea)
4. Place a Storage Crate in the world
5. Put an item in the Storage Crate (I have used iron_axe in my testing)
6. Press [Escape] and click Save and Quit to Title
7. Click Singleplayer
8. Launch the saved world
9. Open the Storage Crate

  1. Launch a dedicated server as detailed above
  2. Launch a new client instance as detailed above
  3. Click Multiplayer
  4. Join the server
  5. Place a Storage Crate in the world
  6. Put an item in the Storage Crate (I have used iron_axe in my testing)
  7. Press [Escape] and click Disconnect
  8. Restart the server
  9. Join the server
  10. Open the Storage Crate

What was expected: The item to be in the Storage Crate
What happened: The Storage Crate is empty

Workaround: Removing either C2ME or Smooth Chunk (or both) makes the Storage Crate work as expected.

Observation: Even when items are placed in a world while C2ME was not installed, then as soon as one stops the server with C2ME installed (even without making any changes to the world) the items disappear from the Storage Crate.

Log: mclo.gs/SY7kyek (and also to pastebin.com/hgnHbX7H as requested in CONTRIBUTING.md)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant