This commit is contained in:
gnembon committed 2019-07-10 18:25:03 -03:00
1 parent 2e403a28c8
commit 24609a8694
1 file changed
+3 -1
@@ -1,7 +1,9 @@
package carpet.mixins;
import carpet.CarpetServer;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.server.network.ServerPlayerInteractionManager;
import net.minecraft.util.math.BlockPos;
@@ -22,7 +24,7 @@ public class ServerPlayerInteractionManager_scarpetEventsMixin
target = "Lnet/minecraft/block/Block;onBroken(Lnet/minecraft/world/IWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V",
shift = At.Shift.BEFORE
))
private void onBlockBroken(BlockPos blockPos_1, CallbackInfoReturnable<Boolean> cir, BlockState blockState_1, boolean boolean_1)
private void onBlockBroken(BlockPos blockPos_1, CallbackInfoReturnable<Boolean> cir, BlockState blockState_1, BlockEntity be, Block b, boolean boolean_1)
{
CarpetServer.scriptServer.events.onBlockBroken(player, blockPos_1, blockState_1);
}