Skip to content

Commit dbcae81

Browse files
committed
Fix monitor.getTextScale() being doubled
Closes dan200#16. The original method divided by 2 in the getter, but that was removed in our monitor rewrite.
1 parent f753513 commit dbcae81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dan200/computercraft/shared/peripheral/monitor/MonitorPeripheral.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public Object[] callMethod( @Nonnull IComputerAccess computer, @Nonnull ILuaCont
243243
case 24:
244244
{
245245
// getTextScale
246-
return new Object[] { monitor.getTextScale() };
246+
return new Object[] { monitor.getTextScale() / 2.0 };
247247
}
248248
}
249249
return null;

0 commit comments

Comments
 (0)