Fix crop block mixin cancellable
This commit is contained in:
parent
1266a3af6d
commit
5676c9320b
@ -40,7 +40,7 @@ public class CropBlockMixin {
|
|||||||
return CraftEventFactory.handleBlockGrowEvent(world, pos, newState, flags);
|
return CraftEventFactory.handleBlockGrowEvent(world, pos, newState, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = "getGrowthSpeed", at = @At("RETURN"))
|
@Inject(method = "getGrowthSpeed", cancellable = true, at = @At("RETURN"))
|
||||||
private static void arclight$spigotModifier(Block block, BlockGetter blockGetter, BlockPos pos, CallbackInfoReturnable<Float> cir) {
|
private static void arclight$spigotModifier(Block block, BlockGetter blockGetter, BlockPos pos, CallbackInfoReturnable<Float> cir) {
|
||||||
if (blockGetter instanceof WorldBridge bridge) {
|
if (blockGetter instanceof WorldBridge bridge) {
|
||||||
int modifier;
|
int modifier;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user