Skip to content

Commit

Permalink
Improve conflicting PoI error message and bring closer to Vanilla. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
OroArmor committed Feb 24, 2024
1 parent afe7356 commit 46772e9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -90,7 +90,7 @@ public class PointOfInterestTypeMixin implements PointOfInterestTypeExtensions {
for (BlockState state : states) {
Holder<PointOfInterestType> replaced = PointOfInterestTypesAccessor.getStateToTypeMap().put(state, Registries.POINT_OF_INTEREST_TYPE.getHolderOrThrow(key));
if (replaced != null) {
throw Util.throwOrPause(new IllegalStateException(String.format("%s is defined in too many tags", state)));
throw Util.throwOrPause(new IllegalStateException(String.format("%s is defined in more than one PoI type: %s and %s!", state, key.getValue().toString(), replaced.getKey().toString())));
}
}

Expand Down

0 comments on commit 46772e9

Please sign in to comment.