Remove references to the now-broken BlockEntity#save(CompoundTag) method (#8235)

This commit is contained in:
SuperMartijn642 authored and GitHub committed 2022-01-19 19:27:34 +00:00
1 parent 00fafb07ce
commit 75408c1a70
5 files changed
+8 -16

No files matched your search

@@ -54,9 +54,7 @@ public interface IForgeBlockEntity extends ICapabilitySerializable<CompoundTag>
@Override
default CompoundTag serializeNBT()
{
CompoundTag ret = new CompoundTag();
self().save(ret);
return ret;
return self().saveWithFullMetadata();
}
/**
@@ -84,7 +84,7 @@ public class BlockSnapshot
@Nullable
private static CompoundTag getBlockEntityTag(@Nullable BlockEntity te)
{
return te == null ? null : te.save(new CompoundTag());
return te == null ? null : te.saveWithFullMetadata();
}
public BlockState getCurrentBlock()
@@ -52,11 +52,10 @@ public class TileFluidHandler extends BlockEntity
}
@Override
public CompoundTag save(CompoundTag tag)
protected void saveAdditional(CompoundTag tag)
{
super.save(tag);
super.saveAdditional(tag);
tank.writeToNBT(tag);
return tag;
}
@Override