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