Fix sending DeviceRemovedPacket on client
This commit is contained in:
parent
e0dfefb72b
commit
0dcb647de4
|
@ -161,8 +161,10 @@ abstract class DeviceBlockEntity(type: BlockEntityType<*>): BlockEntity(type),
|
||||||
}
|
}
|
||||||
|
|
||||||
fun onBreak() {
|
fun onBreak() {
|
||||||
|
if (!world!!.isClient) {
|
||||||
sendPacket(DeviceRemovedPacket(this))
|
sendPacket(DeviceRemovedPacket(this))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
data class PendingPacket(
|
data class PendingPacket(
|
||||||
val packet: Packet,
|
val packet: Packet,
|
||||||
|
|
Loading…
Reference in New Issue