Commit Graph

880 Commits

Author SHA1 Message Date
wizjany
d48530cb67
Don't allow editing without a Bukkit Impl Adapter. (#1920)
* Don't allow editing without a Bukkit Impl Adapter.

Also fix up some failed adapter checks.

* Make config a string, log warning message.

* checkstyle
2021-10-23 16:42:14 -07:00
Octavia Togami
6008fe7333
Remove class shutter
Runtime classes are no longer conflicting. Fixes #1895.
2021-09-12 16:01:25 -07:00
Maddy Miller
fbf61ef9e8
Fix raise and lower deform brushes (#1889) 2021-09-10 23:10:09 -07:00
Maddy Miller
b1c230d36a
Add conditional checking in help command (#1888) 2021-09-04 12:06:15 +10:00
Madeline Miller
f049d5613f Revert "Use a Guava Cache instead of a ThreadLocal (#1859)"
This reverts commit b9f0416624.
2021-08-22 13:45:33 +10:00
Octavia Togami
ed28089628
Don't crash if fields are null in ChunkDeleter (#1874)
Fixes #1873
2021-08-22 13:27:25 +10:00
Maddy Miller
c5a4450373
Internally use a negated mask class to prevent russian doll wrapping (#1877) 2021-08-21 15:45:57 +10:00
Madeline Miller
9de6b87948 Bump language files 2021-08-16 17:30:32 +10:00
Maddy Miller
4277cb5239
Use MethodHandle for faster event bus (#1865)
* Use MethodHandle for faster event bus

* Implement hashCode/equals

* Apply review comments

* Bind to the object directly
2021-08-09 19:06:00 +10:00
Maddy Miller
8ee45137aa
Fix Cycler tool not using full block data (#1868) 2021-08-08 08:23:44 -07:00
Octavia Togami
b9f0416624
Use a Guava Cache instead of a ThreadLocal (#1862)
This allows high performance without leaking memory, and works around
the JVM bug with ThreadLocals. See #1722.
2021-08-02 10:21:13 -07: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
Matthew Miller
f414af50f6
Fix the offset mask forcing negation of itself (#1656) 2021-07-20 18:50:12 -07:00
Matt
fb1fb84965 Fixed typo and grammar 2021-07-16 11:31:35 -07:00
Maddy Miller
8b38f6fbc0
Support 48x48x48 drawsel on 1.16+ (#1826)
* Support 48x48x48 drawsel on 1.16+

* Also update the chat message on //drawsel

* Extract the code

* Split the x/y/z

* angry reacts only
2021-07-16 20:14:46 +10:00
Matt
27baceca85 Fixed typo 2021-07-15 21:33:17 -07: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
NotMyFault
9c7f4542a2
Fix a couple of typos (#1835)
* Fix typo in BukkitImplAdapter

* Yet another dangling typo
2021-07-14 08:08:34 -07:00
Maddy Miller
954210deb8
Fix //outline for non-cuboid regions (#1827) 2021-07-13 11:10:11 +10:00
Octavia Togami
40ded939ef
Fix loading legacy invalid blocks 2021-07-04 16:55:27 -07:00
Octavia Togami
0790e6e5d8
Fix CLI Mess (#1811)
* Fix CLI awfulness

* Fix indentation

* Licenses
2021-07-01 09:44:44 -07:00
Octavia Togami
fbb047a0c1
Optimize legacy schematic loading (#1808)
* Optimize legacy schematic loading

* Be more DRY
2021-06-30 17:02:10 -07:00
Matt
f91e8e4071
Fixed incorrect version numbers in javadocs (#1810) 2021-06-30 12:11:23 -07: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
e2ad0427ef
Update bundled language files 2021-06-12 00:45:38 -07:00
Octavia Togami
3393d2701c
Try require for snake yaml 2021-06-11 14:46:10 -07:00
Octavia Togami
4d6c1973f3
Parallelize tests properly 2021-06-11 14:12:09 -07:00
Octavia Togami
a0a3e0f5f1
De-parameterize vector tests 2021-06-11 13:58:58 -07:00
Octavia Togami
8cc6e7159b
Allow upgrading snakeyaml 2021-06-11 12:45:38 -07:00
Octavia Togami
c8e5f277c1
Update MCUtils for 1.17 (#1774)
* Update MCUtils for 1.17

* Re-add deprecated grass_path
2021-06-11 12:38:22 -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
5a7cbfd6ef
Fix selecting at 0,0,0 or radius 0 cyl/ellipse (#1734) 2021-05-23 23:37:24 -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
98adde2c88
Allow toggleplace to work on any Actor + Locatable (#1723) 2021-04-09 20:07:11 -07:00
Octavia Togami
c7da4c0ade
Swap out logback for log4j2 2021-04-05 10:50:39 -07:00
wizjany
acf9c3b2e1
Change oak stair shape to straight in legacy.json. 2021-04-05 09:22:51 -04: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
wizjany
acd63daddf
Slightly improve usability of LocalSession#getSelection. (#1714)
Allow the World param to be null, throwing IncompleteRegionException.

This allows calling `getSelection(getSelectionWorld())` without having
to separately null-check the World.
Also, add a convenience overload which does so: `getSelection()`.
2021-03-25 00:06:05 -04:00
Matthew Miller
4cd7dc4bcd
Ignore suggestions when uppercase characters are used in props (#1705) 2021-03-13 15:57:03 +10:00
Octavia Togami
7d06279249
Attempt to fix FSSD test with weird win paths (#1699) 2021-03-10 12:35:35 -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
e94f082b07
Improve speed of BlockState init, tick watchdog (#1680) 2021-02-17 11:22:35 -08: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
zml
f04ae2f1ec
Correct ellipsoidal selector initialization (#1632)
When the previous selection was a non-ellipsoidal region, the
started flag would not be appropriately set until a new selection
had been started.
2021-01-09 20:01:36 -08:00
Matthew Miller
98c4580db9
Fix SideEffectSet.none() being the default set (#1620)
* Fix SideEffectSet.none() being the default set

* Remove the unnecessary private empty constructor for SideEffectSet

* Back to ImmutableMap.of
2020-12-22 14:48:22 +10:00
Hannes Greule
544793d541 Properly repeat extents for negative coordinates
An extent's content was returned flipped when applied for negative positions, as e.g. `Math.abs(-2) % 3` returns 2 instead of 1 (as 1 + -1 * 3 = -2)

(cherry picked from commit b0cf5dd2bf1b9bcbf1c7efff0fe25de7ee9a2090)
2020-12-11 12:48:33 -08:00
Matthew Miller
15cba009f4
Persist default state of selwand and navwand in session (#1600)
* Persist default state of selwand and navwand in session

* Fixed some issues with the way it retained info

* Fixed it setting the wrong item

* A little cleaner

* I somewhat misunderstood the way this system worked - This is cleaner and works a lot better

* Replace with octy-approved UX

* Improve logic for default wand loading

Co-authored-by: Octavia Togami <octavia.togami@gmail.com>
2020-12-09 15:03:42 +10:00