cc-tweaked / CC-Tweaked

Just another ComputerCraft fork
https://tweaked.cc
881 stars 206 forks source link

Weird computer behavior under /tick freeze #1876

Open Bamberghh opened 4 days ago

Bamberghh commented 4 days ago

Minecraft Version

1.20.x

Version

1.110.2

Details

Logs

I haven't found anything related to CC in the logs but I'm attaching them anyways just in case:

latest.log

Details

The /tick command, that was added in MC 1.20.3, allows for stopping/starting (most of) game ticking. However the computers behave weirdly when /tick freeze is active (note that the list below is in no way exhaustive):

https://github.com/cc-tweaked/CC-Tweaked/assets/42549672/295bf9e3-c36c-42ee-b6d9-548a7dd73f6a

Video:

https://github.com/cc-tweaked/CC-Tweaked/assets/42549672/ada8e7bb-d21e-4a53-84d5-9de5b6ed0b26

Program to reproduce the behavior shown in the video:

-- transfer.lua

local chestA = peripheral.wrap('left')
local chestB = peripheral.wrap('right')

local function transfer(a, b)
    for i = 1, 54 do
        a.pushItems(peripheral.getName(b), i)
    end
end

transfer(chestA, chestB)
transfer(chestB, chestA)

Video:

https://github.com/cc-tweaked/CC-Tweaked/assets/42549672/517c47f9-bf0b-436d-b948-7da10eb9ce77

Additional details

Since I don't know whether any of the described behaviors are correct/incorrect, I've filed this issue partially for further discussion.

Just in case, here are all exact versions of MC or its mods:

zyxkad commented 4 days ago

Related #1868