mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-12 00:07:37 +00:00
Don't allow chiseling of TileEntity
This commit is contained in:
1 parent
d8fe69a22e
commit
72d234fcb6
2 files changed
+8
-1
No files matched your search
@@ -6,6 +6,7 @@ import java.util.Queue;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
|
||||
@@ -88,6 +89,12 @@ public final class ChiselController {
|
||||
return;
|
||||
}
|
||||
|
||||
TileEntity te = event.world.getTileEntity(x, y, z);
|
||||
if ( te != null) {
|
||||
// Don't support chiseling tile entities
|
||||
return;
|
||||
}
|
||||
|
||||
List<ICarvingVariation> list = group.getVariations();
|
||||
|
||||
main: for (ItemStack stack : OreDictionary.getOres(group.getOreName())) {
|
||||
|
||||
Reference in new issue
Block a user