Fix durability CCE (#726)
This commit is contained in:
parent
b038f4d254
commit
90ed5201f3
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user