Skip to content

Commit 5ca82a1

Browse files
committed
This should be cancellable
1 parent 36eed29 commit 5ca82a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/polyfrost/polyplus/client/mixin/Mixin_ReplaceCapeTexture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
public class Mixin_ReplaceCapeTexture {
1616
@Shadow @Final private GameProfile gameProfile;
1717

18-
@Inject(method = "getLocationCape", at = @At("HEAD"))
18+
@Inject(method = "getLocationCape", at = @At("HEAD"), cancellable = true)
1919
private void polyplus$useCustomCape(CallbackInfoReturnable<ResourceLocation> cir) {
2020
ResourceLocation capeLocation = CosmeticManager.get(this.gameProfile.getId(), "cape");
2121
if (capeLocation != null) {

0 commit comments

Comments
 (0)