fix flight not working unless you had a sentinel in that dimension
This commit is contained in:
parent
fe7051301b
commit
6af1993725
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue