package me.ryanhamshire.GriefPrevention;

import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.network.play.server.S23PacketBlockChange;
import org.spongepowered.api.block.BlockSnapshot;
import org.spongepowered.api.entity.living.player.Player;
import org.spongepowered.common.util.VecHelper;

public class BlockUtils {

    public static void sendBlockChange(Player player, BlockSnapshot snapshot) {
        EntityPlayerMP playermp = (EntityPlayerMP) player;
        if (playermp.playerNetServerHandler == null)
            return;

        S23PacketBlockChange packet = new S23PacketBlockChange((net.minecraft.world.World) snapshot.getLocation().get().getExtent(),
                VecHelper.toBlockPos(snapshot.getPosition()));

        packet.blockState = (IBlockState) snapshot.getState();
        playermp.playerNetServerHandler.sendPacket(packet);
    }
}

@@ -195,16 +195,52 @@
 Change;%0A
+import net.minecraft.util.BlockPos;%0A
 import o
@@ -342,56 +342,8 @@
 yer;
-%0Aimport org.spongepowered.common.util.VecHelper;
 %0A%0Apu
@@ -733,29 +733,83 @@
     
-VecHelper.toBlockPos(
+new BlockPos(snapshot.getPosition().getX(), snapshot.getPosition().getY(), 
 snap
@@ -826,16 +826,23 @@
 sition()
+.getZ()
 ));%0A%0A   

Fix BlockUtils