I should not be allowed to operate a computer.

This commit is contained in:
Izaya 2023-08-07 13:38:59 +10:00
parent ad8a4813ee
commit fc22ee6f08

View File

@ -395,7 +395,7 @@ function proxy:readHandle(h,s)
local handle, rb = self.handles[h]
if handle.currentSector < handle.ft[3] - 1 then
local rb = self.d.readSector(handle.ft[2] + handle.currentSector)
if handle.currentSector == handle.ft[3] - 1 then
elseif handle.currentSector == handle.ft[3] - 1 then
local rb = self.d.readSector(handle.ft[2] + handle.currentSector):gsub("\0+$","")
else
return nil