mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-10 00:41:17 -07:00
Fix draw image bug with tiled displays.
This commit is contained in:
parent
6ad8d06015
commit
2dd665693f
1 changed files with 5 additions and 1 deletions
|
|
@ -764,6 +764,8 @@ public class LogicBlock extends Block{
|
|||
write.s(waitIndices.get(i));
|
||||
write.f(waitValues.get(i));
|
||||
}
|
||||
|
||||
write.f(accumulator);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -823,6 +825,8 @@ public class LogicBlock extends Block{
|
|||
waitIndices.add(index);
|
||||
waitValues.add(value);
|
||||
}
|
||||
|
||||
accumulator = read.f();
|
||||
}
|
||||
|
||||
loadBlock = () -> updateCode(code, false, asm -> {
|
||||
|
|
@ -843,7 +847,7 @@ public class LogicBlock extends Block{
|
|||
}
|
||||
}
|
||||
|
||||
//wait times can only be applied once the instructions are loaded an exist
|
||||
//wait times can only be applied once the instructions are loaded and exist
|
||||
for(int i = 0; i < waitIndices.size; i++){
|
||||
int waitIndex = waitIndices.get(i);
|
||||
if(waitIndex >= 0 && waitIndex < asm.instructions.length && asm.instructions[waitIndex] instanceof WaitI wait){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue