mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-02 19:36:41 +00:00
Added BiomeMask.java and updated minor parts of miscellaneous files
This commit is contained in:
@ -36,9 +36,9 @@ public final class Constants {
|
||||
|
||||
static {
|
||||
NO_COPY_ENTITY_NBT_FIELDS = Collections.unmodifiableList(Arrays.asList(
|
||||
//"UUIDLeast", "UUIDMost", // Bukkit and Vanilla //UUID values need to be set manully to a new UUID
|
||||
"WorldUUIDLeast", "WorldUUIDMost" // Bukkit and Vanilla
|
||||
//"PersistentIDMSB", "PersistentIDLSB" // Forge //UUID values need to be set manully to a new UUID
|
||||
"UUIDLeast", "UUIDMost", "UUID", // Bukkit and Vanilla
|
||||
"WorldUUIDLeast", "WorldUUIDMost", // Bukkit and Vanilla
|
||||
"PersistentIDMSB", "PersistentIDLSB" // Forge
|
||||
));
|
||||
}
|
||||
|
||||
@ -67,5 +67,4 @@ public final class Constants {
|
||||
*/
|
||||
public static final int DATA_VERSION_MC_1_16 = 2566;
|
||||
|
||||
|
||||
}
|
||||
|
@ -25,20 +25,23 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.FileAlreadyExistsException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
|
||||
public class SchematicsEventListener {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(SchematicsEventListener.class);
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(SchematicsEventListener.class);
|
||||
|
||||
@Subscribe
|
||||
public void onConfigLoad(ConfigurationLoadEvent event) {
|
||||
Path config = event.getConfiguration().getWorkingDirectory().toPath();
|
||||
try {
|
||||
Files.createDirectories(config.resolve(event.getConfiguration().saveDir));
|
||||
} catch (IOException e) {
|
||||
LOGGER.warn("Failed to create schematics directory", e);
|
||||
@Subscribe
|
||||
public void onConfigLoad(ConfigurationLoadEvent event) {
|
||||
Path config = event.getConfiguration().getWorkingDirectory().toPath();
|
||||
try {
|
||||
Files.createDirectories(config.resolve(event.getConfiguration().saveDir));
|
||||
} catch (FileAlreadyExistsException e) {
|
||||
LOGGER.debug("Schematic directory exists as file. Possible symlink.", e);
|
||||
} catch (IOException e) {
|
||||
LOGGER.warn("Failed to create schematics directory", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user