Skip to content

Commit

Permalink
fix: use the new Identifier builder instead of the old (and removed) …
Browse files Browse the repository at this point in the history
…constructor
  • Loading branch information
CamperSamu committed Sep 12, 2024
1 parent 682676d commit 8cc2c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/campersamu/chatheads/ChatHeadsInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void onInitializeServer() {
PolymerResourcePackUtils.addModAssets(MODID);

//Register Placeholder
Placeholders.register(new Identifier(MODID, PLAYER), (ctx, arg) -> {
Placeholders.register(Identifier.of(MODID, PLAYER), (ctx, arg) -> {
if (ctx.gameProfile() == null || ctx.server().getUserCache() == null) return PlaceholderResult.value(DEFAULT_HEAD);
if (arg == null || arg.isEmpty())
return PlaceholderResult.value(paintHead(HEAD_CACHE.getOrDefault(ctx.gameProfile().getId(), DEFAULT_HEAD_TEXTURE)));
Expand Down

0 comments on commit 8cc2c72

Please sign in to comment.