15130 Commits

Author SHA1 Message Date
Dylan K. Taylor
503c888838
bootstrap: use phpversion() for checking extension presence
fixes 2 PHPStan errors on level 7
2021-12-07 22:50:16 +00:00
Dylan K. Taylor
e0eeb87ea0
World: simplify tile position checking code 2021-12-07 16:45:20 +00:00
Dylan K. Taylor
78ffad5ffc
World: add checks for tile position outside of world bounds, closes #4622 2021-12-07 16:41:52 +00:00
Dylan K. Taylor
1d14c8cb6b
Merge branch 'stable' into next-minor 2021-12-07 00:41:48 +00:00
Dylan K. Taylor
49d0d01f9f
Merge branch 'next-minor' of github.com:pmmp/PocketMine-MP into next-minor 2021-12-07 00:41:17 +00:00
Dylan K. Taylor
ed4978c31b
Added VanillaItems::AIR()
we don't usually add VanillaItems entries for blocks since they already exist in VanillaBlocks, but air has a special use case specifically as an itemstack, so we make an exception for this case.
2021-12-07 00:41:07 +00:00
Matthew Jordan
3728ddbf24
ClearCommand: Cleanup logic & fix vanilla disparities (#4619) 2021-12-06 23:57:07 +00:00
Dylan K. Taylor
5a351d3b17
StringToItemParser: fixed not recognizing slime or slime_block 2021-12-06 23:51:30 +00:00
Dylan K. Taylor
0c012ca5d9
Replace usages of ItemFactory in tests with VanillaItems 2021-12-06 23:45:36 +00:00
Dylan K. Taylor
0530cb72df
StringToItemParser: fixed some bogus aliases inherited from Item::fromString() 2021-12-06 23:44:41 +00:00
Rush2929
8f2ca92f02
Implement dropped item merging (#4419)
- The following classes have been added:
  - `ItemMergeEvent`
  - `ItemEntityStackSizeChangeAnimation`
- The following API methods have been added:
  - `ItemEntity->isMergeable()`
  - `ItemEntity->tryMergeInto()`
  - `ItemEntity->setStackSize()`
2021-12-06 22:23:18 +00:00
Drew B
ce54d268f2
Player: allow controlling client-sided block collisions irrespective of Spectator Mode (#4563)
- Added the following API methods:
  - `Player::hasBlockCollision()`
  - `Player::setHasBlockCollision()`

This enables spectator-like noclip behaviour in other gamemodes (could be useful for builders).
2021-12-06 21:14:22 +00:00
xxAROX
cd850b111d
SplashPotion: added getType() (#4613) 2021-12-06 20:29:01 +00:00
Dylan K. Taylor
ee060f3e02
Update PHPUnit dependency junk 2021-12-06 16:42:40 +00:00
Dylan K. Taylor
e7deffa9af
Update in-house dependency versions 2021-12-06 16:41:43 +00:00
Dylan K. Taylor
6e4b73c183
FallingBlock: fixed crash when block is unable to be determined 2021-12-06 16:40:47 +00:00
dependabot[bot]
62f150586f
Bump pocketmine/locale-data from 2.0.20 to 2.0.22 (#4621)
Bumps [pocketmine/locale-data](https://github.com/pmmp/Language) from 2.0.20 to 2.0.22.
- [Release notes](https://github.com/pmmp/Language/releases)
- [Commits](https://github.com/pmmp/Language/compare/2.0.20...2.0.22)

---
updated-dependencies:
- dependency-name: pocketmine/locale-data
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-06 15:01:12 +00:00
dependabot[bot]
8ed9551ac9
Bump pocketmine/binaryutils from 0.2.2 to 0.2.3 (#4620)
Bumps [pocketmine/binaryutils](https://github.com/pmmp/BinaryUtils) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/pmmp/BinaryUtils/releases)
- [Commits](https://github.com/pmmp/BinaryUtils/compare/0.2.2...0.2.3)

---
updated-dependencies:
- dependency-name: pocketmine/binaryutils
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-06 14:59:42 +00:00
Dylan K. Taylor
2486dabd8a
Fire: extract more unrelated changes from #4617 2021-12-06 01:04:59 +00:00
Dylan K. Taylor
4d2d0f1d35
changelog: mention removal of Player->getLowerCaseName()
closes #4618
2021-12-06 00:58:21 +00:00
Dylan K. Taylor
4f3a60ac90
Merge branch 'stable' into next-minor 2021-12-05 16:07:23 +00:00
Dylan K. Taylor
98c31cf07b
Update version number 2021-12-05 16:07:20 +00:00
Dylan K. Taylor
9256afd439
Call BlockSpreadEvent when spreading fire to incinerated blocks 2021-12-05 16:06:29 +00:00
Dylan T
cac9db9bcc
changelog: fixed mistake in CreativeInventory documentation, closes #4616 2021-12-05 15:01:45 +00:00
Dylan K. Taylor
300d194185
CS again 2021-12-05 01:09:03 +00:00
Dylan K. Taylor
13340a21d3
fix CS 2021-12-05 01:01:16 +00:00
Dylan K. Taylor
27f599793a
tools: added old-but-gold server-ping.php 2021-12-05 01:00:24 +00:00
Dylan K. Taylor
527e975fa9
shut 2021-12-05 00:45:23 +00:00
Dylan K. Taylor
8e37f86480
Avoid file_put_contents() when overwriting files
this fixes many cases of corruption during disk-full situations - file_put_contents() would write an empty file, destroying the original data.
fixes #3152
2021-12-05 00:26:48 +00:00
Dylan K. Taylor
8e8cee45b8
Config: use JSON_THROW_ON_ERROR for encoding 2021-12-04 21:44:12 +00:00
Dylan K. Taylor
1a046c6cd5
LevelDB: fixed server crash when corrupted / invalid blockstate NBT is encountered 2021-12-04 18:17:17 +00:00
Dylan K. Taylor
e61aaaccca
LevelDB: removed hack for problem fixed by 1f9400f9011546ab914090853069aaa76192a722 2021-12-04 16:20:57 +00:00
marshall
1b86355c40
Server: Suppress "Minecraft network interface running" messages if RakLibInterface registration is cancelled (#4603) 2021-12-02 20:29:01 +00:00
Dylan K. Taylor
1669d33f7e
Updated DevTools submodule to pmmp/DevTools@39510af5bc 2021-12-02 00:58:15 +00:00
Dylan K. Taylor
2da65c5a6e
4.0.1 is next 2021-12-01 22:33:58 +00:00
Dylan K. Taylor
468faa464b
Release 4.0.0 4.0.0 2021-12-01 22:33:52 +00:00
Dylan K. Taylor
59de045ecb
PM4 LET'S GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
Merge branch 'master' into stable
2021-12-01 22:19:37 +00:00
Dylan K. Taylor
bd8308cc6f
changelog: mention pocketmine subdirectory removal 2021-12-01 22:15:38 +00:00
Dylan K. Taylor
edc3bae172
Merge branch 'stable' 2021-12-01 22:11:44 +00:00
Dylan K. Taylor
06e7030817
Prepare changelog for 4.0.0 2021-12-01 22:09:34 +00:00
Dylan K. Taylor
cb0af44ccb
start.sh: improve errors when PHP isn't found 2021-11-30 23:51:35 +00:00
Dylan K. Taylor
d535f02096
Make nicer errors for PHP binary not being found 2021-11-30 23:45:25 +00:00
Dylan K. Taylor
7665f4f443
start.sh: remove 7 2021-11-30 23:43:17 +00:00
Dylan K. Taylor
20d6b69813
3.26.2 is next 2021-11-30 22:27:42 +00:00
Dylan K. Taylor
6b7d0307af
Release 3.26.1 3.26.1 2021-11-30 22:27:42 +00:00
Dylan K. Taylor
baeac2eb07
Fixed tiles not being sent with chunks 2021-11-30 22:19:28 +00:00
Dylan K. Taylor
2850ea1e89
4.0.0-BETA16 is next 2021-11-30 19:27:05 +00:00
Dylan K. Taylor
d560cf17fc
Release 4.0.0-BETA15 4.0.0-BETA15 2021-11-30 19:27:04 +00:00
Dylan K. Taylor
3f6efd0018
Merge branch 'stable' 2021-11-30 19:20:40 +00:00
Dylan K. Taylor
aea124af74
Fix inconsistent class name 2021-11-30 19:17:26 +00:00