Fix durability CCE (#726)
This commit is contained in:
parent
8f9d1b76cc
commit
d129ef01fd
|
@ -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