15716 Commits

Author SHA1 Message Date
NoClip
2f4a9469b6
Player: spectator shouldn't able to pick blocks they don't have (#5111)
Jury is out on whether they should be able to pick blocks at all, or be considered to have infinite resources, but this solution has been used in a few other places already anyway, so it can be cleaned up another time.
2022-08-15 16:48:37 +01:00
Dylan T
8e97e9dcda
SimpleCommandMap: Enforce command permissions by default (#4681)
this resolves many security issues, as well as removing a ton of boilerplate code.
It may be desirable to react to permission denied; this can be done by overriding Command->testPermission(), or by using setPermissionMessage() to set a custom permission denied message.
2022-08-15 16:42:51 +01:00
Colin
304bb84af2
BlockFormEvent: Added getCausingBlock() method (#5226) 2022-08-15 16:26:48 +01:00
Dylan K. Taylor
cb020988d4
5.0.0-ALPHA4 is next 2022-08-14 20:12:25 +01:00
Dylan K. Taylor
eeb95872ea
Release 5.0.0-ALPHA3 5.0.0-ALPHA3 2022-08-14 20:12:24 +01:00
Dylan K. Taylor
1b0d353fa3
Merge branch 'next-minor' into next-major 2022-08-14 20:11:40 +01:00
Dylan K. Taylor
4d34885b15
Merge branch 'stable' into next-minor 2022-08-14 20:11:10 +01:00
Dylan K. Taylor
c5b2488fc1
oh come on... 2022-08-14 20:02:07 +01:00
Dylan K. Taylor
d62df585f2
4.7.2 is next 2022-08-14 19:56:00 +01:00
Dylan K. Taylor
19d7c2b552
Release 4.7.1 4.7.1 2022-08-14 19:55:56 +01:00
Dylan K. Taylor
d4f96a155a
Support axis rotation of Muddy Mangrove Roots (implemented in 1.19.20) 2022-08-14 18:53:01 +01:00
Dylan K. Taylor
43a3151de3
Merge branch 'next-minor' into next-major 2022-08-14 18:49:19 +01:00
Dylan K. Taylor
f7ab0a3b92
Merge branch 'stable' into next-minor 2022-08-14 18:37:56 +01:00
Colin
bf4f6e5d53
Bamboo: fixed supporting block requirements (#5196) 2022-08-14 17:37:55 +01:00
Dylan K. Taylor
036e06e889
Revert "Workaround items in blockentity NBT not being processed correctly in 1.19.10"
This reverts commit 2b61c025c26394c3293bcc12a2d0b2301cb4c7ee.
2022-08-14 17:25:55 +01:00
Dylan K. Taylor
9343a0b800
Added build log link to Discord release embed 2022-08-14 17:20:01 +01:00
Dylan K. Taylor
14b4644b03
Added build_log_url to build_info.json 2022-08-14 17:20:01 +01:00
dependabot[bot]
464b65b25c
Bump docker/build-push-action from 3.1.0 to 3.1.1 (#5213)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3.1.0...v3.1.1)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-12 21:11:11 +01:00
IvanCraft623
f1c571a528
WaterCauldron: fixed dye not being cleared when using water bottles or buckets, close #5221 (#5222) 2022-08-12 21:10:31 +01:00
Dylan K. Taylor
15586ed80e
Fix CS 2022-08-12 21:09:15 +01:00
Dylan K. Taylor
0f8ad8ecf7
Update permission doc output format 2022-08-12 20:47:38 +01:00
Dylan K. Taylor
82b9afef77
Allow generating RST permission summaries, to be used on doc.pmmp.io 2022-08-12 18:00:52 +01:00
Dylan K. Taylor
2fc84f6c67
ItemFactory: treat durables with negative meta as unknown items
fixes #5117
2022-08-12 17:24:43 +01:00
Dylan K. Taylor
566f5935a3
CraftingManagerFromDataHelper: do not register recipes with unknown outputs
fixes #5093

we don't need to check the inputs, since unknown input items shouldn't be obtainable anyway.
2022-08-12 17:19:47 +01:00
Dylan K. Taylor
44e4dabf6e
Fixed Turtle Master potions giving no effects 2022-08-12 17:05:08 +01:00
Dylan T
8acc535218
ffs 2022-08-09 19:27:54 +01:00
Dylan K. Taylor
e9a1cb7ce5
4.7.1 is next 2022-08-09 19:24:02 +01:00
Dylan K. Taylor
a21419d120
Release 4.7.0 4.7.0 2022-08-09 19:24:01 +01:00
Dylan K. Taylor
c2b599166c
Added new shiny webhook for Discord release notifications 2022-08-09 19:21:36 +01:00
Dylan K. Taylor
df7a1fcba6
Changes for 1.19.20 2022-08-09 19:06:05 +01:00
Dylan K. Taylor
d77a95e4af
actions/draft-release: bake the full changelog blob URL into the release notes, to ensure it works properly in emails and embeds 2022-08-06 15:49:04 +01:00
dependabot[bot]
5c72807b16
Bump shivammathur/setup-php from 2.21.0 to 2.21.1 (#5199)
Bumps [shivammathur/setup-php](https://github.com/shivammathur/setup-php) from 2.21.0 to 2.21.1.
- [Release notes](https://github.com/shivammathur/setup-php/releases)
- [Commits](https://github.com/shivammathur/setup-php/compare/2.21.0...2.21.1)

---
updated-dependencies:
- dependency-name: shivammathur/setup-php
  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>
2022-08-06 15:39:36 +01:00
Dylan K. Taylor
5c6927e16c
4.6.3 is next 2022-08-06 15:35:47 +01:00
Dylan K. Taylor
9abbb85a93
Release 4.6.2 4.6.2 2022-08-06 15:35:47 +01:00
Dylan K. Taylor
554182b2cb
Update composer dependencies 2022-08-06 15:27:11 +01:00
Dylan K. Taylor
d669a6f0c7
ReversePriorityQueue: add ReturnTypeWillChange attribute
it's doubtful any plugin dev is extending this, but nonetheless, we can't change it in a patch.
2022-07-27 03:51:06 +01:00
Colin
723ae9eca0
Fixed tallgrass being unplaceable since d9b050fb688155ec962f574388eb48342fc8f9d1 (#5197) 2022-07-27 02:43:05 +01:00
Dylan K. Taylor
79125b8426
Added APIs to get a new unique block/item type ID
this centralization is needed to avoid conflicts between different plugins fighting over the same hardcoded IDs.
2022-07-24 22:02:47 +01:00
Dylan K. Taylor
6ba3b39541
Added tests for BlockTypeIds and ItemTypeIds 2022-07-24 21:57:51 +01:00
Dylan K. Taylor
f4de4bd971
Fixed FloatingTextParticle merge error 2022-07-24 21:41:40 +01:00
Dylan K. Taylor
c8a8e33fc1
Merge branch 'next-minor' into next-major 2022-07-24 21:24:08 +01:00
Dylan K. Taylor
16ed16722a
Merge branch 'stable' into next-minor 2022-07-24 21:21:37 +01:00
Dylan K. Taylor
42f9336f7a
Split packet receive timings into decode and handle subcomponents 2022-07-24 21:16:52 +01:00
Dylan K. Taylor
5d9f783037
InGamePacketHandler: do not update player rotation if it didn't change
setRotation() does an alarmingly large amount of work...
2022-07-24 21:07:35 +01:00
Dylan K. Taylor
01ca14c314
InGamePacketHandler: avoid processing movement if position is unchanged since last tick 2022-07-24 21:00:12 +01:00
Dylan K. Taylor
608c6ed6db
Improved suboptimal code in Player::handleMovement() 2022-07-24 20:51:28 +01:00
Dylan K. Taylor
c26631d06d
InGamePacketHandler: avoid useless object allocations when forceMoveSync=false (99.9% of the time) 2022-07-24 20:44:27 +01:00
Dylan K. Taylor
b75bc61a64
InGamePacketHandler: don't bother checking for flag changes if the flag fields are identical
we don't need to check this on a bit by bit level if the integers are the same.

this saves 2-3 microseconds per packet on my machine, which doesn't sound like much, but it adds up when there are lots of players.
2022-07-24 20:35:49 +01:00
Dylan K. Taylor
3724479be3
InGamePacketHandler: improve performance of input flag resolving 2022-07-24 20:33:35 +01:00
XenialDan
eb916fe43d
Use a falling block entity to improve client side performance of FloatingTextParticle (#4714)
Performance tests show that this has a considerable client-side performance advantage over using players. In my local tests, using 1000 floating texts in a 10x10x10 area, I observed an FPS increase from 1.5 to 8.0.
2022-07-24 18:22:21 +01:00