mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-02 03:16:41 +00:00
Cleaned up ContainerBlock inventory reading from NBT
Changed ListTag's List parameter to List<? extends Tag>
This commit is contained in:
@ -31,6 +31,11 @@ import com.sk89q.worldedit.*;
|
||||
* @author sk89q
|
||||
*/
|
||||
public abstract class ChunkStore {
|
||||
/**
|
||||
* >> to chunk
|
||||
* << from chunk
|
||||
*/
|
||||
public static final int CHUNK_SHIFTS = 4;
|
||||
/**
|
||||
* Convert a position to a chunk.
|
||||
*
|
||||
@ -66,7 +71,7 @@ public abstract class ChunkStore {
|
||||
*/
|
||||
public Chunk getChunk(Vector2D pos, LocalWorld world)
|
||||
throws DataException, IOException {
|
||||
|
||||
|
||||
CompoundTag tag = getChunkTag(pos, world);
|
||||
Map<String, Tag> tags = tag.getValue();
|
||||
if(tags.containsKey("Sections")) {
|
||||
|
Reference in New Issue
Block a user