Updated DisplayLinkPeripheral#write to move cursor to the end of the text

- This change was made to be more inline with ComputerCraft's builtin display API
This commit is contained in:
caelwarner 2023-03-11 15:54:36 -08:00
parent 7141c10025
commit 3e21996984
No known key found for this signature in database
GPG Key ID: 514BEF5EADE889FF

View File

@ -71,6 +71,8 @@ public class DisplayLinkPeripheral extends SyncedPeripheral<DisplayLinkTileEntit
synchronized (tile) {
tile.getSourceConfig().put(TAG_KEY, tag);
}
cursorX.set(x + text.length());
}
@LuaFunction