Commit Graph

302 Commits

Author SHA1 Message Date
Octavia Togami
8c322dfbbb Use some pattern-matching, 'cause it's cool 2022-07-14 17:05:51 -07:00
Octavia Togami
8caaa3e0ed [Forge] Update to 41.0.98 to fix breaking changes
Fixes #2139
2022-07-14 17:05:51 -07:00
Octavia Togami
69b5d661f0
[Forge] 1.19 2022-06-07 17:26:11 -07:00
Maddy Miller
c515eb5f26
Cache properties to reduce startup memory (#2103)
* Cache properties to reduce startup memory

* Apply PR review notes

* Remove import
2022-06-04 16:30:23 +10:00
wizjany
e715ccc3b4
Fix passenger entity saving and loading (#2058)
* Fix incorrect saving and subsequent loading of passenger entities in vehicles.

Originally from https://github.com/EngineHub/WorldEdit/issues/1763#issuecomment-1062429891.

Co-authored-by: wizjany <wizjany@gmail.com>

* Port to Fabric/Forge.

Rewrite in Sponge to use EntityArchetype.
Sponge is untested because WE doesn't properly build/run on it right now apparently?

* NBT Constants.

Co-authored-by: Red_Epicness <red.epicness@icloud.com>
2022-03-18 14:33:35 +10:00
Madeline Miller
5e49f69f76
Forge requires explicitly defining the refmap in the mixing config 2022-03-17 16:58:31 +10:00
Madeline Miller
ccf9397cfd
Now works in dev 2022-03-17 16:42:46 +10:00
Octavia Togami
b4b018d6d5
Remove afterEvaluate to restore refmap
MixinGradle uses an afterEvaluate block to determine JAR registrations.
This runs before our reobf registration does, and I honestly don't
recall why this was in afterEvaluate and it doesn't appear to break
anything so I'm calling it good.
2022-03-17 16:42:46 +10:00
Madeline Miller
dd69617272
Make some improvements to the Forge side - still not fixed 2022-03-17 16:42:46 +10:00
wizjany
b8d096ba99
Un-mixup the mixins.
This properly separates the forge and fabric mixins in the merged -mod jar.
By some miracle Forge was 'working' with the Fabric mixins, but this is probably safer overall.
2022-03-17 16:42:45 +10:00
Octavia Togami
59742162cb Use Forge's official tag API 2022-03-16 20:34:22 -07:00
wizjany
f50a81fcc4
Fluid masks for forge/fabric. (#556)
Closes #877.
2022-03-06 18:11:05 -05:00
Octavia Togami
2fda9a12a2 Some final version updates 2022-03-04 22:03:12 -08:00
Octavia Togami
a6c05c22d8 [Forge] 1.18.2
Plus bonus debug and Fabric improvements
2022-03-04 22:03:12 -08:00
Octavia Togami
ce13ed9979 [Fabric] 1.18.2 update 2022-03-04 22:03:12 -08:00
Maddy Miller
30e1601489
Apply update flag on later change (#2037)
* Apply update flag on later change

* Checkstyle

* Move entry point for UPDATE
2022-03-05 03:32:03 +00:00
Octavia Togami
8929ad205b
Fix Forge max height limit (#2028)
* Fix Forge max height limit

Because this method was silently renamed, we've been using the wrong one
for a bit.

* forge team plz update special source for my fix
2022-02-03 01:53:14 +00:00
Maddy Miller
e118e3dfb2
Fix regen on newer Forge due to removed method (#2021)
* Fix regen on newer Forge due to removed method

* Use saveWithFullMetadata
2022-01-30 11:00:55 -08:00
Maddy Miller
512a07ea5d
Add the UPDATE SideEffect to Forge (#2000) 2022-01-07 14:52:12 +10:00
wizjany
20c42b51c8
Extract log4j version to Versions.kt.
Also bump to match underlying platform versions to resolve runtime
version mismatches.
2021-12-12 18:49:32 -05:00
wizjany
2c0b47d7db
Bump forge version as well. 2021-12-12 18:11:24 -05:00
wizjany
bfef9962f4
Fix BlockEntity saving on Forge. 2021-12-04 13:27:38 -05:00
wizjany
46de95ff3c Clean up forge gradle script, apply the chorus plant fix to forge/fabric world. 2021-12-02 14:43:49 -05:00
wizjany
a8656c5f24 Bump some versions, fix forge run configs. 2021-12-02 13:21:57 -05:00
wizjany
63d2ad4ec3 Bump forge (again). 2021-11-30 20:11:35 -05:00
wizjany
7b4e2c28af Bump forge version.
Loads now, though Forge prod client/server still don't run.
2021-11-30 17:23:49 -05:00
wizjany
f534b61f30 Theoretically works on forge. 2021-11-30 16:01:06 -05:00
Octavia Togami
410688e7b7
[Fabric] Update to 1.18-pre1, Mojmapped
Also Gradle 7.3. :)
2021-11-14 00:01:06 -08:00
Maddy Miller
b4fbbc9cb7
Move clearable checks for Bukkit to adapters (#1887)
* Move clearable checks for Bukkit to adapters

* Apparently this is faster???
2021-09-04 14:31:36 +10:00
Octavia Togami
2e45a20348
[Forge] Update to 1.17.1 (#1847)
* [Forge] Update to 1.17.1

Includes minor updates to Fabric as well.

water and water and water water

* Fix a few things

* Move to latest versions of FG/Forge

Also drops TrueZIP in dev
2021-07-28 23:01:35 -07:00
Octavia Togami
8686672108
Only map options if needed to replace seed (#1843)
* Only map options if needed to replace seed

* Add bukkit adapters.

Co-authored-by: wizjany <wizjany@gmail.com>
2021-07-25 14:08:57 -04:00
wizjany
5a143b83b2
Fix setting biomes on negative-Y-enabled worlds. (#1833)
Also left a note for forge, again.

Closes #1819.
2021-07-14 13:34:50 -07:00
wizjany
1415e6f610 Fix notify at negative Y on fabric, leave note for forge. 2021-07-06 18:18:58 -04:00
Octavia Togami
728a152395
Skip notify if chunk section doesn't exist (#1794)
* Skip notify if chunk section doesn't exist

* Include forge in this change

* Pass chunk to mark/notify directly, update adapters.

Co-authored-by: wizjany <wizjany@gmail.com>
2021-06-26 14:59:21 -07:00
Octavia Togami
043c3315aa
Fix Scuffed POMs (#1779)
* Repair fabric POM

* Fix-up a ton of publishing errors

* Remove shadow jar from publishing

* Remove shadow application from platform/core
2021-06-13 11:32:38 -07:00
Octavia Togami
bf78034628
Drop enforcedPlatform to platform 2021-06-11 14:01:04 -07:00
Octavia Togami
7676a2d54c
[Fabric] Update to 1.17 (#1772) 2021-06-08 19:18:24 -07:00
Octavia Togami
95160027d9
Register platforms and commands in a more proper way (#1766)
* Register platforms and commands in a more proper way

Platforms are now register "on load"/initialize/etc., and preferreds are
chosen just prior to command registration events. This allows us to
properly hook in to reload. Additionally, we now have the capability to
reload data with /minecraft:reload, though this is not yet implemented.

* Correct javadocs on queryCapability

* Flatten BukkitImplAdapter Lifecycled
2021-06-04 17:12:23 -07:00
Octavia Togami
876108fdb3
Prepare for Gradle 7, but due to FG only get to 6.9
Gradle 7 stuff requires FG 5. Phooey.
2021-05-13 22:01:45 -07:00
Octavia Togami
f0a3848b97
Switch to maven-publish (#1718)
* Update to use maven-publish instead of maven

* Use published loom

* These shouldn't be needed
2021-04-06 13:45:57 -07:00
Octavia Togami
609c7b8cc4
Scrapped Logging Framework 4 Java (#1715)
* The scramble is complete

* Fix version decl for Bukkit Log4J

* Swap out to a compatibility layer for LogManager

Slightly slower, but compatible across all Java versions

* Piston released with SL4JF removal

* Clean up declarations a bit
2021-03-28 20:35:48 -07:00
Octavia Togami
36f23bd29f
Fix Forge in -mod at the expense of size
Fixes #1398
2021-03-12 20:31:51 -08:00
Matthew Miller
d3810865c8
Show a message with install instructions when running the jar file (#1682)
* Show a message with install instructions when running the jar file

* Typo

* Fixed checkstyle issue

* Slightly modify message to adapt to the type of install

* Clean up the display code a lot

* Allow line breaks before semi

Co-authored-by: Octavia Togami <octavia.togami@gmail.com>
2021-02-22 22:05:23 -08:00
Octavia Togami
3c161db9a4
Move slower translation to *Transmogrifiers (#1679)
* Move slower translation to *Transmogrifiers

Adapters now use the fast method for adapting if available. Un-cached
accessors are stored in *Transmogrifier classes.

* Fix warnings and licenses.
2021-02-19 15:50:03 +10: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
c0a1e318c4
[Forge] Fix loading language files in prod env 2020-10-24 18:09:12 -07: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