Commit Graph

3376 Commits

Author SHA1 Message Date
Octavia Togami
a600266d41
Properly close all files when dealing with archives (#1274)
* Properly close all files when dealing with archives

* Move file utils to SafeFiles class

* Licenses
2020-04-05 09:17:26 -07:00
Octavia Togami
5ab71109b5
De-dup Bukkit argument rebuilding code 2020-04-04 11:30:22 -07:00
Octavia Togami
7d4563a3ab
Fix onAsyncTabComplete handling of invalid values
This fixes #1281, by just ignoring weird tab completion requests.
2020-04-04 11:05:58 -07:00
wizjany
439d6c811b Re-add block/item localized name methods to registries.
WorldGuard uses these still.
2020-04-01 10:14:57 -04:00
Octavia Togami
bb013aa89b
Use custom radix sort for ordering blocks (#1277)
* Use custom radix sort for ordering blocks

* Licenses :P

* Fix ordering, add test for it

* Grant Gradle more memory (thx Fabric)

* Increase (?) / Specify memory for core tests

* Many attempts at fixing OOM
2020-03-31 18:13:32 -07:00
Octavia Togami
404feef52e
Add height part to expand vert command
Fixes #1275
2020-03-25 16:51:00 -07:00
Octavia Togami
f51fb1cd88
Fix misalignment of libs dependencies 2020-03-25 00:51:56 -07:00
wizjany
4bbdc059ed Disable snapshot-fs test for now. 2020-03-24 14:08:40 -04:00
wizjany
f0f9efffeb
Add version section to bug report template. 2020-03-23 19:38:44 -04:00
wizjany
eb8fcdcd5b Make //size text color consistent. 2020-03-23 18:54:38 -04:00
Octavia Togami
cfd26253b6
Names via Translation (#1268)
* Deprecate BiomeRegistry, etc.

* Update some libraries, e.g. text

* Move to new translation renderer

* Revert "Deprecate BiomeRegistry, etc."

This reverts commit 59a5d6c92aec52739a8dc68ac3d23898af7593dd.

This was not a good idea for potential mod shenanigans.

* Move BiomeData#getName to BiomeRegistry, use i18n

* Use getRichName instead of getName

* Implement getRichName for NullBiomeRegistry

* Add getRichName for blocks

* Relocate net.kyori.minecraft

* Update adapters for getRichBlockName

* Add getRichName for items

* Update adapters for getRichItemName

* Update adapters JAR for merge
2020-03-23 15:47:27 -07:00
Octavia Togami
2f4c44f80c
Validate placed blocks / WNA (#1263)
* Optionally validate placed blocks

This allows re-connection of fences, chests, panes, etc.; removal of
blocks in invalid states; and more!

The Connections side-effect already did this for neighbors, so this is
now renamed to Validation for accuracy, and left on by default.

This also fixes some inconsistencies between the Fabric & Forge
markAndNotifyBlock function.

* Add forge comment to fabric world

* Add WorldNativeAccess common logic

* Add Fabric WNA

* Add Bukkit WNA for adapters

* Fix imports for new Fabric mappings

* Pass raw world ref to Bukkit adapters

* Remove client-only block update call

We always assume a server world.

* Allow WNA impls to inspect side-effects

* Update adapters for WNA

* Licenses

* Fix adapter JAR

* Generify EVENTS side effect

* Update adapters for EVENTS change
2020-03-22 21:02:04 -07:00
Octavia Togami
17880b819d
Merge pull request #521 from EngineHub/feature/cubic-chunks-7
Cubic Chunks compatibility (version 7)
2020-03-22 20:53:57 -07:00
Octavia Togami
1c6b1b3848
Merge master 2020-03-22 20:41:03 -07:00
Octavia Togami
20d630ce5b
Only add adapters to dist jar 2020-03-22 15:00:02 -07:00
Octavia Togami
e69246208c
[Forge] Require MC between current + next major version 2020-03-22 01:42:53 -07:00
Octavia Togami
e6d5950b59
Nest snapshot test dbs in a root temp folder
Allows us to clean it all up easily.

Closes #558.
2020-03-22 01:12:20 -07:00
wizjany
b4d2db3dee
Allow expand to be used by console. (#1264)
* Allow expand to be used by console.

Also fix direction converter requiring a player.

* Revert exception.
2020-03-20 11:36:54 +10:00
ㄗㄠˋ ㄑㄧˊ
47db40f957
use JavaPlugin.getResource() instead of JarFile.getEntry() (#566)
* use JavaPlugin.getResource() instead of JarFile.getEntry()

* use try-with-resources

* fix typo
2020-03-19 13:39:21 -04:00
Octavia Togami
1ca94fa244
Correct capitalization on nav wand i18n 2020-03-18 01:42:06 -07:00
wizjany
25ec78f355 Update adapters. 2020-03-16 16:31:29 -04:00
Matthew Miller
865c3a24d2
Replace fast mode with a side effect system, with fine-grained control (#547)
* Speed up initial change buffering by removing streams and optional wrapping

* Bump the adapters for an experimental performance boost (Purely Bukkit 1.15.2)

* Bump adapters for fixes

* Bump adapters for further performance boosts

* Migrate fast mode to a BlockUpdates section, allowing fine-grained control

* Rename to SideEffect and clean up usage of the set

* Implement a 'usable' state

* Add a test command to demonstrate SideEffects. This is non-final

* Move //sideeffect into //fast

* Improve the box for //fast

* Switch to a system that includes "delayed" as a mode

* Remove the concept of configurable side effects, all are configurable. And each platform specifies what it supports.

* Implement side effects on other platforms (and spigot versions)

* Only use the side effects from the world editing platform

* Update from review

* Rename WorldApplyingExtent to SideEffectExtent

* More review fixes

* Update the World#applySideEffects return type to return the applied side effects

* Fixed requested changes

* Fixed checkstyle

* Improve setBlock javadocs

* Further improve

* Switch parameter name

* Fixed typo in translation key

* Temporarily remove DELAYED

* static final

* Side Effects = 7.2.0 snapshot
2020-03-08 16:09:36 +10:00
TheMolkaPL
a06b8342d3 Remove no-double-slash option from configs 2020-03-03 09:06:51 -05:00
Octavia Togami
6e87fda185
Merge pull request #557 from EngineHub/feature/expression-coverage
Expression coverage
2020-02-26 23:24:35 -08:00
Octavia Togami
02da42f90b
Fix exponent parsing, remove impossible (?) case 2020-02-25 17:16:00 -08:00
Octavia Togami
b8130eb5dd
Cover even more cases 2020-02-25 17:11:06 -08:00
Octavia Togami
3dbaae79cd
Cover many more ops 2020-02-25 16:35:43 -08:00
Octavia Togami
00c7d3a157
Fix not operator 2020-02-25 16:22:55 -08:00
Octavia Togami
0f787a89b8
Fix pre- and post- ops 2020-02-25 16:20:21 -08:00
Octavia Togami
42e515f435
Remove non-valued return 2020-02-25 16:13:44 -08:00
Octavia Togami
910c89be65
Extract common simple test case method 2020-02-24 00:45:57 -08:00
Octavia Togami
f8be17d362
Fix bug introduced in return-handling refactor 2020-02-24 00:39:22 -08:00
Octavia Togami
cbd686548f
Add more expression test cases, fix bugs
Also added a few more comments + reorganized exceptions that are
invoke-internal.
2020-02-24 00:33:49 -08:00
Octavia Togami
b9ba337f38
Make testEvaluate more compact 2020-02-23 17:40:11 -08:00
Octavia Togami
ae1e68e10f
Do not try crowdin if using offline mode 2020-02-23 17:39:30 -08:00
Octavia Togami
bfbf9a4862
Add codecov / jacoco hooks (#554)
* Add codecov / jacoco hooks

* Upgrade codecov plugin
2020-02-22 15:50:26 +10:00
Matthew Miller
e476be1186
Tick watchdog by default (#555) 2020-02-21 18:18:08 +10:00
Octavia Togami
6bc1d4647c
Expression Goodie Bag (#553)
* Remove async expression eval. Implement timeout inline

* Remove static state from expr functions

* Remove now-unused TL stack

* Rework some expr handles
2020-02-21 18:17:49 +10:00
Octavia Togami
486f20a350
Merge pull request #549 from Gimlao/patch-2
Update draw.js
2020-02-19 17:43:18 -08:00
Matthew Miller
be30a94be5 Replaced the "please report this" message in the legacy schematic loader 2020-02-16 17:49:04 +10:00
Octavia Togami
f752b011ec
Fix commenting on bug_report.md 2020-02-13 03:28:40 -08:00
Octavia Togami
0c456ef7a6
Add issue template config 2020-02-13 03:26:03 -08:00
Octavia Togami
22eabc655f Add issue templates 2020-02-13 03:23:47 -08:00
Octavia Togami
28c3dd4af4
Merge pull request #551 from EngineHub/feature/improved-version-specs
Improve versioning
2020-02-10 21:15:45 -08:00
Octavia Togami
947775b5e5
Read WE version from manifest ourselves 2020-02-10 17:11:08 -08:00
Octavia Togami
3e15c6dfdd
Make internal version always semver 2020-02-10 16:49:40 -08:00
Octavia Togami
3ed190268c
Lower load factors in BlockMap
We can sacrifice these tiny amounts of memory for large CPU gains.
2020-02-09 15:25:43 -08:00
Matthew Miller
f111f6bfce
Significantly improve performance in ChunkBatchingExtent and other buffering extents (#550)
* Re-apply non-adapter performance boosts in separate PR

* Improved deprecation handling

* Move TODO
2020-02-07 20:28:14 +10:00
Octavia Togami
92eab931ea
[Forge] Include all -core resources, for all langs 2020-02-03 21:26:13 -08:00
Octavia Togami
38f3f8e667
[Forge] Fix loading legacy/lang in dev 2020-02-03 21:17:33 -08:00