Computer is connected to network without a modem
Josian2004 opened this issue · 13 comments
Minecraft Version
1.19.x
Version
1.101.2
Details
When I place a computer and a cable behind it (so there is no modem between the computer and the cable), the computer is still connected to the network as if it had a modem. When I do peripheral.getNames(), it also shows that there is a modem on the "back" position but there is just a cable.
This is really odd, even with this set up I'm unable to reproduce.
The implementation ensures that the we only return a peripheral on the side the modem is on, so when there's no modem should only return something when side == null
- a little dubious, but should never happen.
Does this happen with just Forge and CC: Tweaked? If not, the only thing I can really suggest is finding the smallest set of mods which still cause this issue.
I figured it out, it is because of more peripherals so I will open an issue there
This is really odd, even with this set up I'm unable to reproduce.
The implementation ensures that the we only return a peripheral on the side the modem is on, so when there's no modem should only return something when
side == null
- a little dubious, but should never happen.Does this happen with just Forge and CC: Tweaked? If not, the only thing I can really suggest is finding the smallest set of mods which still cause this issue.
No were using more peripherals and advanced peripherals, it might be because of those mods so I will check without them soon
Can it be just a visual glitch?
No because I can interact with the peripherals even though there is no modem on the computer
No because I can interact with the peripherals even though there is no modem on the computer
I mean absence of modem can be a visual glitch. If I remember code correctly, non-block version of wired modem is actually cable block with some extra properties
No because I can interact with the peripherals even though there is no modem on the computer
I mean absence of modem can be a visual glitch. If I remember code correctly, non-block version of wired modem is actually cable block with some extra properties
ah you mean like that, no I don't think so because I'm pretty sure that I didn't place a modem. I freshly picked a computer and peripherals and it still happens. But I will check with just CC Tweaked
Hm, can I ask you to extract nbt data from block via \data get block x y z
command and also blockstate of broken cable? Not sure, if it helps, but it can.
Oh, very odd. They're registering a peripheral provider which just gets the peripheral capability. As the side
is null
, that invalidates our invariant from before.
They shouldn't need to do this, as CC uses the peripheral capability already.