mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Drones unpickable, too much overhead to sync component data.
This commit is contained in:
parent
a322981dea
commit
b877fca955
@ -30,7 +30,6 @@ import net.minecraft.entity.item.EntityItem
|
||||
import net.minecraft.entity.player.EntityPlayer
|
||||
import net.minecraft.item.ItemStack
|
||||
import net.minecraft.nbt.NBTTagCompound
|
||||
import net.minecraft.util.MovingObjectPosition
|
||||
import net.minecraft.util.Vec3
|
||||
import net.minecraft.world.World
|
||||
import net.minecraftforge.common.util.ForgeDirection
|
||||
@ -369,12 +368,6 @@ class Drone(val world: World) extends Entity(world) with MachineHost with intern
|
||||
super.hitByEntity(entity)
|
||||
}
|
||||
|
||||
override def getPickedResult(target: MovingObjectPosition) = {
|
||||
val stack = api.Items.get("drone").createItemStack(1)
|
||||
info.save(stack)
|
||||
stack
|
||||
}
|
||||
|
||||
override def interactFirst(player: EntityPlayer) = {
|
||||
if (player.isSneaking) {
|
||||
kill()
|
||||
|
Loading…
x
Reference in New Issue
Block a user