diff --git a/src/main/kotlin/net/shadowfacts/phycon/network/block/networkinterface/NetworkInterfaceBlock.kt b/src/main/kotlin/net/shadowfacts/phycon/network/block/networkinterface/NetworkInterfaceBlock.kt index 95df2d0..f14926e 100644 --- a/src/main/kotlin/net/shadowfacts/phycon/network/block/networkinterface/NetworkInterfaceBlock.kt +++ b/src/main/kotlin/net/shadowfacts/phycon/network/block/networkinterface/NetworkInterfaceBlock.kt @@ -53,15 +53,8 @@ class NetworkInterfaceBlock: BlockWithEntity(Settin } } - override fun activate(state: BlockState, world: World, pos: BlockPos, player: PlayerEntity, hand: Hand, result: BlockHitResult): Boolean { - if (!world.isClient) { - getBlockEntity(world, pos)!!.printContents() - } - return true - } - override fun addAllAttributes(world: World, pos: BlockPos, state: BlockState, to: AttributeList<*>) { to.offer(getBlockEntity(world, pos)) } -} \ No newline at end of file +} diff --git a/src/main/kotlin/net/shadowfacts/phycon/network/block/networkinterface/NetworkInterfaceBlockEntity.kt b/src/main/kotlin/net/shadowfacts/phycon/network/block/networkinterface/NetworkInterfaceBlockEntity.kt index 293dccd..8ed1f81 100644 --- a/src/main/kotlin/net/shadowfacts/phycon/network/block/networkinterface/NetworkInterfaceBlockEntity.kt +++ b/src/main/kotlin/net/shadowfacts/phycon/network/block/networkinterface/NetworkInterfaceBlockEntity.kt @@ -28,14 +28,6 @@ class NetworkInterfaceBlockEntity: DeviceBlockEntity(PhyBlockEntities.NETWORK_IN inventory = ItemAttributes.GROUPED_INV.getFirstOrNull(world, offsetPos, option) } - fun printContents() { - inventory?.also { inv -> - inv.storedStacks.forEach { - println(it) - } - } - } - override fun handlePacket(packet: Packet) { when (packet) { is RequestReadAllPacket -> handleReadAll(packet)