fix flight not working unless you had a sentinel in that dimension

This commit is contained in:
yrsegal@gmail.com 2022-05-06 23:01:02 -04:00
parent fe7051301b
commit 6af1993725

View file

@ -149,7 +149,7 @@ public class HexPlayerDataHelper {
var timeLeft = tag.getInt(TAG_FLIGHT_TIME);
var origin = HexUtils.DeserializeVec3FromNBT(tag.getLongArray(TAG_FLIGHT_ORIGIN));
var radius = tag.getDouble(TAG_FLIGHT_RADIUS);
var dimension = ResourceKey.create(Registry.DIMENSION_REGISTRY, new ResourceLocation(tag.getString(TAG_SENTINEL_DIMENSION)));
var dimension = ResourceKey.create(Registry.DIMENSION_REGISTRY, new ResourceLocation(tag.getString(TAG_FLIGHT_DIMENSION)));
return new FlightAbility(true, timeLeft, dimension, origin, radius);
}
return FlightAbility.deny();