Fixed some fabric warnings

This commit is contained in:
Frank 2021-09-23 15:20:03 +02:00
parent 791db59c18
commit 8abcab32ec
4 changed files with 18 additions and 11 deletions

View file

@ -35,14 +35,15 @@ public class BaseBarrelBlockEntity extends RandomizableContainerBlockEntity {
public BaseBarrelBlockEntity(BlockPos blockPos, BlockState blockState) {
this(BaseBlockEntities.BARREL, blockPos, blockState);
}
public CompoundTag save(CompoundTag tag) {
super.save(tag);
@Override
public void saveAdditional(CompoundTag tag) {
super.saveAdditional(tag);
if (!this.trySaveLootTable(tag)) {
ContainerHelper.saveAllItems(tag, this.inventory);
}
return tag;
//return tag;
}
public void load(CompoundTag tag) {