Compare commits
2 Commits
version2.0
...
version2.0
Author | SHA1 | Date | |
---|---|---|---|
ca982f5ba9 | |||
bf1f2bcff2 |
@ -1,5 +1,5 @@
|
||||
name: Craft Inc. Gates
|
||||
version: 2.0.1
|
||||
version: 2.0.1a
|
||||
description: A plugin to create gates for fast traveling.
|
||||
author: tomco, s1m0ne
|
||||
authors: [oloflarsson, locutus, DrAgonmoray, s1m0ne, tomco]
|
||||
|
@ -84,13 +84,15 @@ public class Gate extends BaseGate implements ConfigurationSerializable
|
||||
location = LocationSerializer.deserializeLocation((Map<String, Object>) map.get(locationKey));
|
||||
exit = LocationSerializer.deserializeLocation((Map<String, Object>) map.get(exitKey));
|
||||
|
||||
if (exit != null) {
|
||||
if (map.containsKey(exitPitchKey)) {
|
||||
exit.setPitch(((Double)map.get(exitPitchKey)).floatValue());
|
||||
exit.setYaw(((Double)map.get(exitYawKey)).floatValue());
|
||||
}
|
||||
|
||||
location.setPitch(((Double)map.get(locationPitchKey)).floatValue());
|
||||
location.setYaw(((Double)map.get(locationYawKey)).floatValue());
|
||||
if (map.containsKey(locationPitchKey)) {
|
||||
location.setPitch(((Double)map.get(locationPitchKey)).floatValue());
|
||||
location.setYaw(((Double)map.get(locationYawKey)).floatValue());
|
||||
}
|
||||
|
||||
gateBlockLocations = new HashSet<Location>();
|
||||
List<Map<String, Object>> serializedGateBlocks = (List<Map<String, Object>>)map.get(gateBlocksKey);
|
||||
|
Reference in New Issue
Block a user