mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-25 22:14:53 +02:00
Fix compilation
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
23e1c8a0bc
commit
dd26d4ceb8
|
@ -18,16 +18,15 @@ import org.jglrxavpok.hephaistos.nbt.NBTType;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class CampfireHandler implements BlockHandler {
|
||||
|
||||
public static final Tag<List<ItemStack>> ITEMS = Tag.View(new TagSerializer<>() {
|
||||
private final Tag<NBTList<NBTCompound>> internal = Tag.NBT("Items");
|
||||
private final Tag<NBT> internal = Tag.NBT("Items");
|
||||
|
||||
@Override
|
||||
public @Nullable List<ItemStack> read(@NotNull TagReadable reader) {
|
||||
NBTList<NBTCompound> item = reader.getTag(internal);
|
||||
NBTList<NBTCompound> item = (NBTList<NBTCompound>) reader.getTag(internal);
|
||||
if (item == null)
|
||||
return null;
|
||||
List<ItemStack> result = new ArrayList<>();
|
||||
|
|
Loading…
Reference in New Issue
Block a user