mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-10-26 14:24:34 +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
+1
-1
@@ -1,4 +1,4 @@
|
||||
mod_version=2.9.5
|
||||
mod_version=2.9.6-GTNH
|
||||
minecraft_version=1.7.10
|
||||
forge_version=10.13.4.1481-1.7.10
|
||||
|
||||
|
||||
@@ -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