Skip to content

Commit

Permalink
dev cape changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Uraneptus committed Aug 30, 2024
1 parent 0a413a6 commit b1ebd43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import net.minecraftforge.client.event.RenderPlayerEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.loading.FMLEnvironment;

import java.util.Map;
import java.util.Set;
Expand All @@ -27,10 +28,10 @@ public class SMClientForgeEvents {
public static void onEvent(RenderPlayerEvent.Post event) {
Player player = event.getEntity();
UUID uuid = player.getGameProfile().getId();
if (DEV_UUIDS.contains(uuid)) {
if (DEV_UUIDS.contains(uuid) || !FMLEnvironment.production) {
ResourceLocation cape = SullysMod.modPrefix("textures/entity/mosaic_modding_cape.png");
if (player instanceof AbstractClientPlayer clientPlayer && clientPlayer.playerInfo != null) {
if (clientPlayer.isCapeLoaded() && clientPlayer.getCloakTextureLocation() == null) {
if (clientPlayer.isCapeLoaded()) {
Map<MinecraftProfileTexture.Type, ResourceLocation> playerTextures = clientPlayer.playerInfo.textureLocations;
playerTextures.put(MinecraftProfileTexture.Type.CAPE, cape);
playerTextures.put(MinecraftProfileTexture.Type.ELYTRA, cape);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b1ebd43

Please sign in to comment.