Skip to content

Commit

Permalink
fix: Use more likely casting for world type template builder
Browse files Browse the repository at this point in the history
  • Loading branch information
gabizou committed May 18, 2024
1 parent ea7418f commit 7b4e8d4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
import org.spongepowered.api.world.WorldType;
import org.spongepowered.api.world.WorldTypeEffect;
import org.spongepowered.api.world.WorldTypeTemplate;
import org.spongepowered.api.world.WorldTypes;
import org.spongepowered.common.SpongeCommon;
import org.spongepowered.common.bridge.world.level.dimension.DimensionTypeBridge;
import org.spongepowered.common.data.SpongeDataManager;
Expand Down Expand Up @@ -123,8 +122,7 @@ public BuilderImpl() {

@Override
public Function<WorldTypeTemplate, WorldType> valueExtractor() {
// TODO fix me
return w -> WorldTypes.OVERWORLD.get();
return (w) -> (WorldType) (Object) ((SpongeWorldTypeTemplate) w).dimensionType;
}

@Override
Expand Down

0 comments on commit 7b4e8d4

Please sign in to comment.