mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 03:10:54 -04:00
Fix chunk attachments not marking the chunk for saving. (#4454)
(cherry picked from commit 4e7c6049ea
)
This commit is contained in:
parent
6b8d419822
commit
e830f9e302
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ abstract class ChunkMixin implements AttachmentTargetImpl {
|
|||
public abstract ChunkPos getPos();
|
||||
|
||||
@Shadow
|
||||
public abstract boolean needsSaving();
|
||||
public abstract void markNeedsSaving();
|
||||
|
||||
@Override
|
||||
public AttachmentTargetInfo<?> fabric_getSyncTargetInfo() {
|
||||
|
@ -52,7 +52,7 @@ abstract class ChunkMixin implements AttachmentTargetImpl {
|
|||
|
||||
@Override
|
||||
public void fabric_markChanged(AttachmentType<?> type) {
|
||||
needsSaving();
|
||||
markNeedsSaving();
|
||||
|
||||
if (type.isPersistent() && this.getStatus().equals(ChunkStatus.EMPTY)) {
|
||||
AttachmentEntrypoint.LOGGER.warn(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue