|
1 | | --- Raphael's Library v1.4.0 |
2 | | --- Last Updated: 19/10/2014 - 22:26 UTC |
3 | | --- Released for WindBot v2.4.9 |
| 1 | +-- Raphael's Library v1.4.1 |
| 2 | +-- Last Updated: 21/11/2014 - 16:25 UTC |
| 3 | +-- Released for WindBot v2.5.4 |
4 | 4 |
|
5 | | -RAPHAEL_LIB = '1.4.0' |
| 5 | +RAPHAEL_LIB = '1.4.1' |
6 | 6 |
|
7 | 7 | --[[ |
8 | | - * Changelog v1.4.0 |
| 8 | + * Changelog v1.4.1 |
9 | 9 | * |
10 | | - * - Added table.flatten. |
11 | | - * - Added getvalue and curchannel. |
12 | | - * - Added Expander Class. |
13 | | - * - Added composition mode constants. |
14 | | - * - Added REGEX_ITEMS_SOLD and REGEX_ITEMS_BOUGHT. |
15 | | - * - Updated cetoffset and cettime; this should fix problems with sstime. |
16 | | - * - Updated npctalk to better emulate time taken to write message when fast hotkeys is enabled. |
17 | | - * - Updated table.each and table.map to allow for recursive behavior. |
18 | | - * - Updated table.merge to allow for recursive behavior and remove forceKey parameter. |
19 | | - * - Updated Area Class to include extra functionality. |
20 | | - * - Fixed some other minor bugs. |
| 10 | + * - Fixed a small bug with the Point constructor. |
21 | 11 | * |
22 | 12 | --]] |
23 | 13 |
|
|
932 | 922 | * original waitping() solution, passing `normalWait` as true. |
933 | 923 | * |
934 | 924 | * @since 0.1.0 |
935 | | - * @updated 1.3.1 |
| 925 | + * @updated 1.4.0 |
936 | 926 | * |
937 | 927 | * @param {string...} messages - Messages to be said |
938 | 928 | * @param {boolean} [normalWait] - If waitping should be used as |
@@ -2029,6 +2019,9 @@ function Point:new(x, y) |
2029 | 2019 | else |
2030 | 2020 | x, y = x[1], x[2] |
2031 | 2021 | end |
| 2022 | + elseif type(x) == 'string' or type(x) == 'string' then |
| 2023 | + x = tonumber(x) |
| 2024 | + y = tonumber(y) |
2032 | 2025 | end |
2033 | 2026 |
|
2034 | 2027 | if type(x) ~= 'number' or type(y) ~= 'number' then |
|
0 commit comments