Commit Graph
2762 Commits
Author SHA1 Message Date
altrisi d85c23125f Add explicit deprecation SuppressWarnings for Gradle 2023-04-03 19:40:33 +02:00
altrisi 56e25a780c Missed call in 5fcfc7a 2023-04-03 19:19:31 +02:00
altrisi 83e88856ab Rename fungus growth enum given the rule is no longer about a fix 2023-04-03 19:15:08 +02:00
altrisi 431b0e68de Cleanup to the /player command (#1690)
* Small cleanup to `/player` command

There should be no changes to users

* Use extracted `source` variable

* Inline another single-use small function

* Inline another trivial helper

* Import inner classes of the ActionPack

* Rename `literalargumentbuilder` variable

* Compact unnecessary three lines into one

* Inline `source.getServer` and pass `Vec3` to `createFake`

This gets outside of "just" the command, but it's fine

* Unpick name length constant

* Pass `Vec3` directly to `BlockPos.containing`
2023-04-03 18:41:09 +02:00
altrisi 5fcfc7aa8d Tiny drive-by cleanup of action pack's onUpdate 2023-04-02 21:54:44 +02:00
altrisi 73260a220c Use EnumMap in the action pack 2023-04-02 21:23:42 +02:00
altrisi 2d0a8e11da Keep the other improvements from #1689 2023-04-02 13:26:46 +02:00
altrisi b055b05263 Revert "Fix /player look and turn commands reversing yaw and pitch (#1689)"
This reverts commit 591153458c.
2023-04-02 12:51:22 +02:00
altrisi 591153458c Fix /player look and turn commands reversing yaw and pitch (#1689)
* Fix `/player` `look` and `turn` commands reversing yaw and pitch

* Translate a comment to mojmap and update it a bit
2023-04-01 12:34:54 +02:00
James McCulloch e7c02ea21a shadow-single-player-owner-fix: (#1687)
* shadow-single-player-owner-fix:
* Disallow shadowing a single player server owner. Fixes #1442

* shadow-single-player-owner-fix:
* Remove some redundant calls
2023-04-01 12:22:04 +02:00
gnembon 4171f9b784 23w13a 2023-03-29 18:44:12 +02:00
gnembon f1586b3809 23w12a 2023-03-22 18:27:44 +01:00
altrisi 1ad927da9d Up priority in MinecraftServer_tickspeedMixin 2023-03-19 19:36:37 +01:00
Ghoulboy cde3ffced2 Fixing /player botname stop with relation to *fake* player movement (#1683) 2023-03-19 18:56:12 +01:00
altrisi f98c2409be Simplify enum options creation
Slightly optimizes it
2023-03-16 17:36:44 +01:00
replaceitem 8aae23c983 Fixed AnnotationParser not detecting USE_METHOD_NAME (#1677) 2023-03-15 14:46:31 +01:00
James McCulloch 8307794f19 Fix fake players not being able to respawn for exiting the end (#1664)
* Allow fake players to respawn (to return from the end)
* Fixes #1645 (Fake players get stuck in the end exit portal)

* fix up some imports
2023-03-14 17:07:27 +01:00
James McCulloch 8c09946bef Fix fake players not teleporting to unloaded chunks (#1665)
* fake-players-teleporting-fix:
* Fix fake players not being moved on the chunkmap when teleporting
* Fixes #1190 (Player bots cannot be teleported to unloaded chunks)

* fake-players-teleporting-fix:
* add missing access widener

* Revert "fake-players-teleporting-fix:"

This reverts commit 617702fca14035913103140d2e04fa33065bf628.

* fake-players-teleporting-fix:
* access awaitingTeleport in a nicer way

* fake-players-teleporting-fix: * access awaitingTeleport in a nicer way
2023-03-14 17:02:41 +01:00
altrisi 0869cbb81c Move rule change event into a rule observer and outside the Java api
* Move rule change event into a rule observer, without exposing it

* Fix comment

* Fix formatting changes added by my IDE

Still trying to configure it to force correctly the new style

Also remove some finals
2023-03-08 21:31:34 +01:00
altrisi 06bdbdaed2 Add arithmetic shift, use logic shift in current right shift (#1670)
* Add arithmetic shift, use logic shift in current

* State that the MSBs will be cleared to zero in logic right shift
2023-03-08 21:26:27 +01:00
Ghoulboy c2ef75df6d Removed if clauses
It was functionally equivalent to the solution proposed in #1072
2023-03-08 21:25:19 +01:00
altrisi cc24f79d47 Allow scarpet function name to be different to annotated method name 2023-03-08 20:53:35 +01:00
altrisi 4801534229 Sync fillLimit rule with the equivalent gamerule 2023-03-08 20:52:44 +01:00
altrisi 13882146fc Simplify app store rule cleaning 2023-03-08 16:41:43 +01:00
altrisi 883d887e11 Make OutputConverter.convert return Value
This is a breaking change, but there's only one use of the function on all github

The refactor also makes `register` take a function to `Value`, no one uses the one to `LazyValue` anyway. `registerToValue` is now deprecated
2023-03-08 14:07:50 +01:00
altrisi 93bec37dac Simplify and optimize bit roll operations
Suggested in #1666, ran many testing to check it gives the same results
2023-03-08 13:24:37 +01:00
gnembon 3f19cce649 fixed chest stickyness 2023-03-02 22:24:29 +01:00
gnembon 4c8e477f4b 1.19.4-pre1 2023-02-22 20:22:02 +01:00
gnembon 4d842ae382 not needed 2023-02-22 11:24:41 +01:00
gnembon 146573803c scarpet corountines idea 2023-02-22 02:33:03 +01:00
silnarm 23ed35a398 fake-players-falling-fix:
* Fix fake players not accumulating fallDistance or ever 'hitting the ground'
 * Fixes #1586 (Fake player does not take fall damage)
 * Should Fix #1478 (fake players cannot use critical hits)
 * Should Fix Unreported/Unconfirmed (fake players can not engage Elytras)
2023-02-22 01:33:07 +01:00
gnembon a295f81fa9 23w07a 2023-02-15 20:10:24 +01:00
gnembon 86a123d2f1 store rate limit prevention 2023-02-15 12:57:53 +01:00
gnembon 2ff1f4fb71 refactored nonscarpet references yeet 2023-02-11 01:33:23 +01:00
gnembon e4c090c355 fxied player_interacts_with_blocks not triggering 2023-02-11 01:33:23 +01:00
gnembon 2b1bb9652b added ON_TICK support for display entities 2023-02-11 01:33:23 +01:00
gnembon 41e33503fb 23w06a 2023-02-08 21:44:15 +01:00
gnembon 277872b33c warning cleanup 2023-02-08 21:13:15 +01:00
altrisi 5ab4a9e442 Document new and deprecated methods, catch exceptions 2023-02-08 21:13:14 +01:00
gnembon aea76d9764 removed static reference to server in annotation parser 2023-02-08 21:13:14 +01:00
gnembon 75d94b0570 cleanup of scarpet dependencies 2023-02-08 21:13:14 +01:00
gnembon fd93785fec added nonnull assertions 2023-02-05 12:56:06 +01:00
gnembon 15f99b3389 fixing mahusive JVM crash 2023-02-04 23:48:55 +01:00
gnembon 8f61271606 semi-auto cleanup 2023-02-04 13:26:21 +01:00
gnembon 85f7c64847 fixed use of client side classes in shape dispatcher 2023-01-31 21:54:34 +01:00
vlad2305m d49be89e23 Do not load clientside-only classes in serverside ShapeDispatcher code (#1642)
fixed use of client side classes in shape dispatcher
2023-01-31 21:39:37 +01:00
gnembon 2133675ac7 renamed sample_density with 'sample_noise'. sample noise values directly from the local router if possible. 2023-01-30 18:02:08 +01:00
gnembon 659f0106e3 renamed compute_density_function with 'sample_density' and tweaked its use 2023-01-28 19:51:13 +01:00
gnembon ea88c09c42 cached access to worldgen noise functions 2023-01-28 19:20:44 +01:00
altrisi 6adccfd46a Some minor cleanup in CarpetServer
- Fully remove late registration handling
 - That removes the reference to the command dispatcher
- Fix displaced comment
- Simplify "don't mixin to register" checking
2023-01-25 18:05:32 +01:00