bf668c0f6c
Rename EnchantHelper related stuff
...
Perhaps this and EnchantOption should be called EnchantingHelper and EnchantingOption respectively. The terminology used is rather inconsistent, but 'enchantment' definitely isn't the right word here.
2023-08-23 16:07:02 +01:00
d942748203
Move enchanting seed generation to EnchantmentHelper
2023-08-23 15:52:49 +01:00
29fdc8b08d
Private constructor for EnchantmentHelper
2023-08-23 15:49:31 +01:00
20a41b00ba
StringToTParser: added registerAlias()
2023-08-23 15:24:29 +01:00
df96e023dc
Require pocketmine/nbt 1.0.0
2023-08-23 14:42:50 +01:00
f4d5605de1
Use hasHandlers() on more warm-hot events
2023-08-23 14:35:53 +01:00
d03e4d17ec
Use hasHandlers() for events in player movement processing pathway
...
this should offer a minor performance improvement.
2023-08-23 14:26:17 +01:00
4cc858829f
5.4.4 is next
2023-08-21 18:31:45 +01:00
e852a43821
Release 5.4.3
5.4.3
2023-08-21 18:31:45 +01:00
05f40b1315
Merge branch 'legacy/pm4' into stable
2023-08-21 18:27:18 +01:00
7aaef8cb89
4.23.7 is next
2023-08-21 18:26:50 +01:00
9d4c37fc3a
Release 4.23.6
4.23.6
2023-08-21 18:26:47 +01:00
cd6abbe0bb
BaseSign: remove redundant condition
2023-08-21 16:30:16 +01:00
22778583cf
Sign: implement waxing using honeycomb
2023-08-21 16:28:17 +01:00
d44e0e87d0
BaseSign: implement sign editing
...
this was originally submitted by #6000 , but considering the overcomplicated PR and the triviality of the feature, I figured it would be quicker to do it myself instead of having a bunch of back-and-forth bikeshedding over it.
2023-08-21 16:14:43 +01:00
258038c9a9
Merge branch 'minor-next' into major-next
2023-08-21 16:08:32 +01:00
47b448965d
Merge branch 'stable' into minor-next
2023-08-21 16:08:27 +01:00
cfa2df82eb
Merge branch 'legacy/pm4' into stable
2023-08-21 16:07:56 +01:00
7f78ec0a32
Include PHP binary URLs in GitHub releases and build info
2023-08-21 16:05:59 +01:00
8572311bf4
Remove dead PHPStan stub
...
closes #6003
2023-08-21 14:57:26 +01:00
18ca3a37d9
CrashDump: fixed crashdump generation failure on fatal error
...
closes #6007
2023-08-21 14:51:54 +01:00
5c915a3dfe
Merge branch 'minor-next' into major-next
2023-08-18 12:33:54 +01:00
b2414b4c29
EnchantTransaction: cleanup XP cost checking logic
2023-08-18 12:33:07 +01:00
b3c740081e
Merge branch 'stable' into minor-next
2023-08-18 12:28:45 +01:00
4b41fca991
Merge branch 'legacy/pm4' into stable
2023-08-18 12:28:29 +01:00
9f09acc079
Workaround for slot IDs not changing client side when old item == new item
...
this is a really dumb bug and seems similar to the armor bug I fixed a while ago.
fixes #5987
it's unlikely that #5727 will be solved by this, but one can hope...
2023-08-18 12:27:27 +01:00
beaca8bb6d
EnchantTransaction: fixed XP level costs when minimum level is less than the XP cost
...
this can happen and happens in vanilla too. In these cases, as much of the XP cost as possible is deducted.
2023-08-16 14:51:47 +01:00
e323c5dd76
Implement pressure plate activation logic and events ( #5991 )
...
closes #5936
This implements all of the basic activation logic for pressure plates.
It also introduces a PressurePlateUpdateEvent, which is called in pulses when entities are standing on top of the plate and when it deactivates. Deactivation can be detected by checking if the list of activating entities is empty.
---------
Co-authored-by: Javier León <58715544+JavierLeon9966@users.noreply.github.com >
2023-08-16 13:00:23 +01:00
b65b7a7f74
Bump tests/plugins/DevTools from 83f0db3
to 411fd5b
( #5998 )
...
Bumps [tests/plugins/DevTools](https://github.com/pmmp/DevTools ) from `83f0db3` to `411fd5b`.
- [Release notes](https://github.com/pmmp/DevTools/releases )
- [Commits](83f0db3f9e...411fd5bdc0
)
---
updated-dependencies:
- dependency-name: tests/plugins/DevTools
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-16 09:38:16 +01:00
f516c3c502
EnchantCommand: ensure that books are turned into enchanted book items
2023-08-15 19:10:48 +01:00
5afbb9d807
Allow enchanted books to be enchanted
...
if an enchanted book is obtained via /give without enchantments, it should be able to receive enchantments in an enchanting table, exactly the same as regular books.
2023-08-15 19:10:03 +01:00
8c594fd126
Merge branch 'minor-next' into major-next
2023-08-15 17:41:50 +01:00
b330cbe8e2
Merge remote-tracking branch 'origin/stable' into minor-next
2023-08-15 17:41:41 +01:00
39867b97c5
Implement enchanting using enchanting tables ( #5953 )
...
Co-authored-by: Dylan K. Taylor <dktapps@pmmp.io >
2023-08-15 17:28:26 +01:00
4c25d38b44
Bump phpunit/phpunit from 10.3.1 to 10.3.2 ( #5995 )
...
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit ) from 10.3.1 to 10.3.2.
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/10.3.2/ChangeLog-10.3.md )
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/10.3.1...10.3.2 )
---
updated-dependencies:
- dependency-name: phpunit/phpunit
dependency-type: direct:development
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>
2023-08-15 12:05:23 +01:00
983aa79a0b
Bump build/php from ed0bc4d
to a053f65
( #5993 )
...
Bumps [build/php](https://github.com/pmmp/php-build-scripts ) from `ed0bc4d` to `a053f65`.
- [Release notes](https://github.com/pmmp/php-build-scripts/releases )
- [Commits](ed0bc4d2af...a053f65e18
)
---
updated-dependencies:
- dependency-name: build/php
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-15 09:30:51 +01:00
af9ae445fc
Fix cake drops ( #5985 )
...
closes #5984
2023-08-10 17:42:32 +01:00
91d5a3ddfe
PotionCauldron: fixed setPotionItem() not validating the given item
...
we should probably remove this API and have enums for potion container and type tbh... this API was a mistake
2023-08-10 16:06:41 +01:00
e48b5b2ec0
GeneratorManager: allow aliasing existing generators
2023-08-10 13:07:03 +01:00
f03e708f64
Fix chorus not working if the destination would be below y=0 ( #5979 )
2023-08-10 09:42:58 +01:00
9fd6653f36
Remove deprecated APIs
2023-08-09 16:38:09 +01:00
32d67080e5
Merge branch 'minor-next' into major-next
2023-08-09 16:35:32 +01:00
37f2dafae1
PluginBase: make saveResource() use copy() instead of overengineered streams garbage
2023-08-09 16:16:11 +01:00
7826e0a11e
Merge branch 'stable' into minor-next
2023-08-09 16:14:05 +01:00
97700636c6
PluginBase: added getResourceFolder() and getResourcePath(), deprecate getResource() ( #5961 )
...
This is a step towards #5958 .
While it's not actually necessary to add these functions (since people could just use getFile() . "/resources/whatever.yml" instead), this helps preserve the convention of using the `resources` folder, which might be helpful for external tools.
As an example:
stream_get_contents($this->getResource("lang/eng.ini"));
(which is actually incorrect, since it leaks a resource)
can now be replaced by
file_get_contents($this->getResourcePath("lang/eng.ini"));
quite trivially.
getResourceFolder() can be used with scandir() to enumerate resources instead of using getResources(), although getResources() still provides utility in the relativized resource paths.
2023-08-09 16:09:16 +01:00
447f061566
Use Event::hasHandlers() for a few more hot events
2023-08-09 15:46:20 +01:00
b86b389fc5
changelog: fix link
...
[ci skip]
this is not technically wrong, but it's inconsistent with other changelogs
2023-08-09 15:33:02 +01:00
e27121a437
5.4.3 is next
2023-08-09 14:04:57 +01:00
2d5c9e64ce
Release 5.4.2
5.4.2
2023-08-09 14:04:57 +01:00
78f5fbddf3
Merge branch 'legacy/pm4' into stable
2023-08-09 13:58:14 +01:00