Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 10:30:04 +01:00
Remove DataException from NbtValued's setNbtData().
Dieser Commit ist enthalten in:
Ursprung
759c6ba50d
Commit
bdd6d20013
@ -170,12 +170,8 @@ public class MCEditSchematicFormat extends SchematicFormat {
|
||||
BlockVector pt = new BlockVector(x, y, z);
|
||||
BaseBlock block = getBlockForId(blocks[index], blockData[index]);
|
||||
|
||||
if (block instanceof TileEntityBlock && tileEntitiesMap.containsKey(pt)) {
|
||||
try {
|
||||
((TileEntityBlock) block).setNbtData(new CompoundTag("", tileEntitiesMap.get(pt)));
|
||||
} catch (com.sk89q.worldedit.world.DataException e) {
|
||||
throw new DataException(e.getMessage());
|
||||
}
|
||||
if (tileEntitiesMap.containsKey(pt)) {
|
||||
block.setNbtData(new CompoundTag("", tileEntitiesMap.get(pt)));
|
||||
}
|
||||
clipboard.setBlock(pt, block);
|
||||
}
|
||||
|
@ -57,6 +57,6 @@ public interface NbtValued {
|
||||
* @param nbtData NBT data, or null if no data
|
||||
* @throws DataException if possibly the data is invalid
|
||||
*/
|
||||
void setNbtData(@Nullable CompoundTag nbtData) throws DataException;
|
||||
void setNbtData(@Nullable CompoundTag nbtData);
|
||||
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren