Fix items stacking in EssentialsX /kit (#224)

This commit is contained in:
André Sales 2021-04-04 01:22:59 -03:00 committed by GitHub
parent 8f071289b0
commit 3fed903fac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,6 +214,13 @@ public abstract class MaterialMixin implements MaterialBridge {
}
}
@Inject(method = "getMaxStackSize", cancellable = true, at = @At("HEAD"))
private void arclight$getMaxStackSize(CallbackInfoReturnable<Integer> cir) {
if (arclight$spec != null) {
cir.setReturnValue(arclight$spec.maxStack);
}
}
@Override
public MaterialPropertySpec bridge$getSpec() {
return arclight$spec;