Fix durability CCE (#726)

This commit is contained in:
IzzelAliz 2022-09-11 21:40:09 +08:00
parent 8f9d1b76cc
commit d129ef01fd
No known key found for this signature in database
GPG Key ID: EE50E123A11D8338

View File

@ -221,9 +221,9 @@ public abstract class MaterialMixin implements MaterialBridge {
}
@Inject(method = "getMaxDurability", cancellable = true, at = @At("HEAD"))
private void arclight$getMaxDurability(CallbackInfoReturnable<Integer> cir) {
private void arclight$getMaxDurability(CallbackInfoReturnable<Short> cir) {
if (arclight$spec != null) {
cir.setReturnValue(arclight$spec.maxDurability);
cir.setReturnValue(arclight$spec.maxDurability.shortValue());
}
}