Changed data-yml format
This commit is contained in:
parent
b8ed619b1c
commit
1168b8859a
@ -44,16 +44,15 @@ public class LinkedBeaconTeleporterManager {
|
|||||||
// New list for this id
|
// New list for this id
|
||||||
List<LinkedBeaconTeleporter> linkedBeaconTeleporters = new ArrayList();
|
List<LinkedBeaconTeleporter> linkedBeaconTeleporters = new ArrayList();
|
||||||
|
|
||||||
for(String blockId : teleportersData.getKeys(false)) {
|
for(String serializedLoc : teleportersData.getKeys(false)) {
|
||||||
ConfigurationSection teleporterData = teleportersData.getConfigurationSection(blockId);
|
ConfigurationSection teleporterData = teleportersData.getConfigurationSection(serializedLoc);
|
||||||
|
|
||||||
// Load location
|
// Load location
|
||||||
String serializedLoc = teleporterData.getString("loc");
|
|
||||||
Location loc;
|
Location loc;
|
||||||
try {
|
try {
|
||||||
loc = Function.deserializeBlockLocation(teleporterData.getString("loc"));
|
loc = Function.deserializeBlockLocation(teleporterData.getString("loc"));
|
||||||
} catch (InvalidPropertiesFormatException e) {
|
} catch (InvalidPropertiesFormatException e) {
|
||||||
Main.log.severe("Could not load location='"+ serializedLoc +"' from "+ teleporterId +" > "+ blockId);
|
Main.log.severe("Could not load location='"+ serializedLoc +"' from "+ teleporterId);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,7 +60,7 @@ public class LinkedBeaconTeleporterManager {
|
|||||||
Block block = loc.getBlock();
|
Block block = loc.getBlock();
|
||||||
if(block.getType() != Material.BEACON){
|
if(block.getType() != Material.BEACON){
|
||||||
// Data out of sync! Skipping
|
// Data out of sync! Skipping
|
||||||
Main.log.warning(teleporterId +" > "+ blockId +" at location "+ serializedLoc +" changed and is no longer LinkedBlockTeleporter! (Changed without the plugin running?)");
|
Main.log.warning(teleporterId +" at location "+ serializedLoc +" changed and is no longer LinkedBlockTeleporter! (Changed without the plugin running?)");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user