Commit Graph

93 Commits

Author SHA1 Message Date
Octavia Togami
56c891946d
Allow UPDATE mixin to soft-fail on Fabric (#1654)
This allows Carpet's mixin to take priorty, and UPDATE will simply be
disabled on Fabric in that case. Fixes #1605
2021-01-27 15:33:51 -08:00
Matthew Miller
4095a0866e
Boost TileEntity clear performance, with extra boost on Paper (#1652)
* Boost TileEntity clear performance, with extra boost on Paper

* :(
2021-01-25 20:52:04 +10:00
Octavia Togami
9534a9cfce
Update so many dependencies, merge Forge/Fabric for final jar (#1651)
* Update so many dependencies, merge Forge/Fabric for final

* Clean up contrib docs for Gradle change

* Fix setting compat flags while using toolchain

* Fix deprecation in doc printer

* Restore proper forge JAR name

* Add dist classifier for mod jar

* Properly relocate new bStats

* Fix jar used from fabric

* Fix fabric bom

* Dup the shaded classes for consistency

* Sync Forge/Fabric log4j versions, de-dup

* Downgrade both log4j. This will work

* Update some plugins as well

* Drop the fabric force stuff

* Use duplicate strategy to directly merge jar
2021-01-25 02:14:09 -08:00
zml
0036e06f89
Alter the CUI lifecycle to be more consistent and reliable (#1633)
* Alter the CUI lifecycle to be more consistent

This handling reduces the platform-specific behaviour of CUI handshakes,
and ensures that the appropriate state is maintained when a client
connection ends but a LocalSession remains cached.

* Apply review suggestions

* fabric: Update to new networking API

* session: Correct field grouping for cui attempts
2021-01-16 13:07:29 +10:00
Octavia Togami
3a3bf3de2c
Run the chunk deleter in Fabric (#1641) 2021-01-09 14:38:07 -08:00
Octavia Togami
86bf3a3419
Support Lucko's Fabric Permissions API (#1638)
* Add support for Lucko's Fabric Perms API

Only if present, falls back to the existing checks if it returns
`false`.

* Only use vanilla fallback if no value set in Perms
2021-01-05 12:14:54 -08:00
Octavia Togami
e0dd2f3cb6
Fix failure caused by previous commit 2021-01-04 20:46:56 -08:00
Octavia Togami
5201538608
Remove superclasses of mixins where not needed 2021-01-04 14:15:52 -08:00
Octavia Togami
3637d94aef
Implement UPDATE for Fabric (#1598)
* Implement UPDATE for Fabric

* Fix a minor threading problem
2020-11-29 17:56:09 -08:00
Octavia Togami
bc64990e7e
Move to packaged translations (#1555)
* Move to packaged translations

* License that file

* Fix some checkstyle too

* Support reloading translation files

* Add missing dash for unpack directory

* Mark unpacked zips as owner-only
2020-10-08 17:42:23 -07:00
Lewis B
beb784e0ff
Add -w flag to butcher for water mobs (#1548)
* Add -w flag to butcher for water mobs

* PR feedback
2020-10-05 13:50:20 +10:00
Matthew Miller
26d8306833
Fixed snow being placed through slabs (#1541)
* Added a method to check whether a block can be placed at a location

* Make the snow system only place at locations that it can by game logic

* Make canPlaceAt a default method

* Fixed PR comments

* Use a World field

* Just throw directly

* IAE makes more sense

* Remove unused import

* Check for editsession without a world
2020-10-02 16:53:05 +10:00
Octavia Togami
8e53aa0891
[Fabric, Forge] Update build files for 1.16.3
No actual changes, beta 4 is functional, but this was to ensure it
compiled.
2020-09-10 16:15:48 -07:00
Octavia Togami
15467e9453
Add one to max point to match our regions better
Fixes #1522.
2020-09-07 11:11:05 -07:00
Octavia Togami
3996998c5f Deprecate BlockQuirkExtent, handle lower down
Ice is no longer turning into water since before 1.7.10, so that part has been
removed entirely.
2020-08-28 20:57:10 -07:00
Octavia Togami
f2ce020da0 Officially propagate GPL downwards to all files 2020-08-13 21:06:39 -07:00
Matthew Miller
0a9fa869c9
Fixed an issue where upwards resolved schematics would break schem list (#1481)
* Fixed an issue where upwards resolved schematics would break schem list

* Missed diff

* PR changes

* Further fixes

* Improve sorting logic

* Pass in comparator rather than using sort type

Co-authored-by: Octavia Togami <octavia.togami@gmail.com>
2020-08-13 18:01:37 +10:00
Octavia Togami
e0718dd319 [Fabric] Update to 1.16.2 2020-08-13 00:16:10 -07:00
Octavia Togami
484a5dbd2d [Fabric] Preliminary update to 1.16.2-rc2 2020-08-13 00:16:10 -07:00
dordsor21
c4abc9a247 Allow regeneration to accept Extents instead of EditSessions.
Allows for custom Extents to be parsed to regen, and for clipboard regeneration, etc whilst still allowing EditSessions
2020-07-26 13:22:26 +10:00
Matthew Miller
043faaf55f
Add a stacker mode to the snow command (#1429)
* Convert simulateSnow to an Operation and add stacking support

* Fixed height calculations

* Use a LayerVisitor for SnowSimulator

* Fixed few issues

* Update the 1.16 block mappings, and use isSolid rather than !isTranslucent due to translucent no longer existing. A better solution should come later.

* I feel this is a better temporary check
2020-07-17 11:29:07 +10:00
Octavia Togami
1b568ded67 Use BiomeQuirkExtent instead of spotty handling 2020-07-15 20:10:25 -07:00
Octavia Togami
5803cb10b5 Fix 3D biome support testing
3D biomes always work on dedicated servers, at least as far as the
client knows. This is so terrible though. Mojang why.
2020-07-15 20:10:25 -07:00
Octavia Togami
7134ff4494
Remove all compile deps, use api/impl as appropriate 2020-07-15 18:48:47 -07:00
Octavia Togami
a0b4f93304
Remove Fabric LCA handler, pretty broken 2020-07-14 22:34:02 -07:00
wizjany
9d9aaac15a Add fungi and chorus plant tree types.
Closes #1411.
2020-07-12 14:34:48 -04:00
Octavia Togami
93e386a5c1
Remove ShutdownHook / onExit handling
This didn't work right, and if we fail to cleanup, it's unlikely it
would succeed at exit.
2020-07-09 20:16:48 -07:00
Octavia Togami
81f6e3e7cf Cleanup some javac warnings 2020-07-07 20:38:57 -07:00
Octavia Togami
eb52afa296 Create a brand new checkstyle config
And also apply it!
2020-07-07 20:38:57 -07:00
Octavia Togami
781abd511d Add final to many fields 2020-07-07 20:38:57 -07:00
Octavia Togami
176418bad1
Add force-deletion utilities for cleaning up dirs
Windows sucks.
2020-07-07 14:46:29 -07:00
Octavia Togami
f4c4406186
[Fabric] Fix left click air firing on wrong hand 2020-07-05 19:09:15 -07:00
Octavia Togami
bf6cd1ea08
Regeneration Options (#1415)
* Add RegenOptions to the API

* Integerate regen options into //regen

* Rename isRegenBiomes to shouldRegenBiomes

* Go through the EditSession for setting biomes

* Respect 3D biome support in regen

* Add RegenOptions implementation for 1.16 Bukkit adapter.

Co-authored-by: wizjany <wizjany@gmail.com>
2020-07-03 22:17:34 -07:00
Octavia Togami
71e104bcb1
Replace setPosition with trySetPosition (#1403)
Allows cancellation information to be fed back into the ascend/descend
algorithms.
2020-07-01 08:24:58 -07:00
Octavia Togami
732c11cb7c
Use interface for ServerWorldProps/Info
Fixes #1397
2020-06-29 13:24:46 -07:00
Octavia Togami
a6236b6796
Propagate 3D biome support up extent stack
Fixes #1399

Also improved Fabric gradle b/c why not
2020-06-28 15:51:50 -07:00
wizjany
66047ade3d [fabric] Prevent NPEs getting client locale. 2020-06-26 13:40:06 -04:00
wizjany
46d3b5caf6 [fabric] Fix error when players joined before the first tick. 2020-06-26 13:27:19 -04:00
Octavia Togami
3225cedc1c
[Fabric] Allow functions to load some of our cmds
Forcibly reload the server resources after we register commands.
2020-06-25 22:27:19 -07:00
Octavia Togami
320509c733
Load Fabric deps from the mod json declarations 2020-06-25 22:00:37 -07:00
Octavia Togami
e0f7c33bdf
[Fabric] Include command api in required mods 2020-06-25 21:46:03 -07:00
i509VCB
ce4f08905e
Use fabric-lifecycle-events-v1 over deprecated v0. (#1380)
fabric-events-lifecycle-v0 is now deprecated, so upgrading it.
2020-06-25 21:44:18 -07:00
Octavia Togami
5789ccd5d7
[Fabric] Re-register commands on reload 2020-06-25 21:26:52 -07:00
Octavia Togami
ecd7f0f404
Update yarn mappings 2020-06-25 11:17:16 -07:00
Octavia Togami
f44c4403f5
Add LongArrayTag NBT support
Apparently this has been missing for a while.
2020-06-25 11:13:06 -07:00
Matthew Miller
984e944815 Add 1.16 UUID tag to NO_COPY_ENTITY_NBT_FIELDS 2020-06-25 17:08:35 +10:00
Octavia Togami
6513513b3e
Mojang AB and the Column Biome Fuzzer (#1376)
* Allow API detection of the biome fuzzer in use

This allows us to warn, fix, or optimize biome edits to the overworld.

* Drop edits to Y = 0 for biomes in overworld

* Re-work ArbitraryBiomeShape to simplify logic

Also fixes not being able to use THE_VOID with it
2020-06-23 23:33:20 -07:00
Octavia Togami
3db43c88c0
Try to fix issue with extra server tasks
I don't think there's a cleaner way to pop these off.
2020-06-23 14:11:22 -07:00
Octavia Togami
6412383636
Fabric 1.16 (#1362)
* [Fabric] Test port to 1.16-pre5

* [Fabric] Fix/improve regen implementation

* Cleanup properly in regen

* Cleanup unused interfaces/methods from porting

* Add licenses to new classes

* Allow packages from refactor in checkstyle

* Remove unused imports from WorldGenListener

* Remap the access widener in the dist jar

* [Fabric] Update to 1.16-pre6 (recursion limit)

Requires an update in the Bukkit Adapters later.

* [Fabric] Update to 1.16

May or may not build, depending on how cached everything is.
2020-06-23 11:55:49 -07:00
Matthew Miller
f5e36ed8a8
Add 3D biomes support (Adds #1358) (#1361)
* Initial work on 3D biomes. Not implemented for Bukkit, and history is unfinished

* Further implement 3D Biomes. It's now usable on Forge/Fabric

* Fix a few cases of apply. Gotta fix the deprecated methods at some point

* Add Bukkit support

* Add clipboard support. Schematics are still not great, but the Sponge schem format doesn't support this yet.

* Fix the last of the issues

* Fixed up review comments

* Fixed review notes

* Simplify

* max is inclusive

* Standardize non-abstract compatibility handling

Co-authored-by: Octavia Togami <octavia.togami@gmail.com>
2020-06-22 09:25:49 +10:00