e05bee5ffb
RegionLoader: do a full check for chunk overlaps during initial load
2020-06-14 22:39:01 +01:00
717b866605
Merge branch 'stable' into next-minor
2020-05-06 20:25:11 +01:00
ef97c8f99e
Utils: fix parsing of single-line doc comments, closes #3388 ( #3469 )
...
* Utils: fix parsing of single-line doc comments, closes #3388
* correctly handle the empty doc-comment case, add another test case
* ignore an extra phpstan bug
2020-05-06 14:17:08 +01:00
f8ce01e2fd
ItemFactory: extract fromStringSingle() from fromString()
...
on PM4, the multiple functionality is removed, but on PM3 this is a problem for phpstan.
2020-03-13 17:54:25 +00:00
7aa8bd18d3
Revert "Item: restrict bounds of count to 0-255"
...
This reverts commit 10317527e4
.
this breaks user code which exceeds stack limits in legitimate
circumstances. For example, it should be OK to add 6000x diamond to a
player's inventory without being forced to manually split the count up
for addItem().
2020-02-25 20:42:03 +00:00
04581e2700
DataPacket: account for splitscreen header when decoding
2020-02-24 21:20:25 +00:00
10317527e4
Item: restrict bounds of count to 0-255
2020-02-23 17:23:53 +00:00
a1622fa345
UtilsTest: silence a phpstan-strict-rules warning
2020-02-06 18:53:05 +00:00
5ad66c3c9b
BlockTest: throw exception instead of always-false assert
2020-02-06 13:21:39 +00:00
532dc0fb6f
tests/phpunit: populate iterable types for phpstan
2020-02-06 13:11:56 +00:00
e12618c705
tests/phpunit: added missing native typehints
2020-02-06 12:13:42 +00:00
8a6381c3fa
StupidJsonDecodeTest: add some extra test vectors
2019-10-01 13:25:20 +01:00
d0d61597c7
StupidJsonDecodeTest: use getClosure() instead of traditional mess
...
this is faster and requires less code.
2019-09-26 11:28:40 +01:00
d724374d1a
StupidJsonDecodeTest: add failing test case for #3113
2019-09-16 15:53:00 +01:00
810bdeb965
Test one extra case for LevelProviderManager
2019-04-26 12:01:12 +01:00
6f5d4d6b80
RegionLoader: fixed handling of invalid chunk coordinates
2019-03-05 10:52:36 +00:00
df1ef7fe0c
Improve RegionLoader tests
2019-03-05 10:51:44 +00:00
a30b1fb6d5
Inventory: Add failing test case for itemstack NBT duplication
2019-03-03 11:11:33 +00:00
c83b7d9b69
Utils: fixed getNiceClosureName() not processing namespaced closures properly
2019-01-26 12:08:07 +00:00
beb5d72299
RegionLoader: fix off-by-one bug with large chunks, closes #2615
2018-12-29 00:02:54 +00:00
2da2fdd6d4
Added a test for Item->equals() when both items have no NBT
2018-10-29 12:42:03 +00:00
9d17c9a09d
Merge branch 'release/3.1' into release/3.2
2018-08-19 11:22:58 +01:00
3892f2f404
Config: Properly prevent keys getting transformed into bools
...
The original regex almost completely failed at its objective, because it a) only worked if there was no value for the key, and b) did not prevent all such occurrences getting transformed, while quoting patterns that would not get transformed anyway.
2018-08-19 11:22:36 +01:00
bfa415e108
Add unit tests for json decoding hack
2018-08-19 10:30:52 +01:00
6ab2fa84da
added some tests for ItemFactory::fromString()
2018-07-17 14:52:47 +01:00
40030e9800
added some LevelProviderManager tests
2018-07-17 12:02:08 +01:00
b01b477a2a
Properly fixed newline issues when parsing doc comments
...
fixes #2110 properly
fixed @notHandler and such not being detected when CRLF is used
2018-07-10 12:46:20 +01:00
9d16863b1a
Convert some TesterPlugin tests into PHPUnit tests, add PHPUnit configuration
2018-06-05 19:33:21 +01:00