Skip to content

Changes

Started 1 yr 0 mo ago
Took 14 min
Update azure-pipelines.yml for Azure Pipelines
(commit: e34b265)
LadyCailin at
Update azure-pipelines.yml for Azure Pipelines
(commit: de28613)
LadyCailin at
Update azure-pipelines.yml for Azure Pipelines
(commit: 002d5bc)
LadyCailin at
Fix legacy PROTECTION_FALL enchant rename

Affected enchant meta using the 6+ year old format of a normal array of enchant arrays in the last several builds.
(commit: 28d6ff1)
PseudoKnight at
Fix sample main file
(commit: 25f8cd8)
PseudoKnight at
Add support for Minecraft 1.21

Attribute modifiers' optional "name" and "uuid" keys have been replaced with a namespaced key under "id". Old attribute modifiers will use the UUID to generate a namespaced key.
(commit: 5b137ff)
PseudoKnight at
Fix pinventory_holder() in versions prior to 1.21

InventoryView was changed from an abstract class to an interface in the latest spigot commit
(commit: 15d2b5b)
PseudoKnight at
Bump braces in /src/main/resources/apps.methodscript.com (#1383)

Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(commit: 6d4ad5c)
noreply at
add modify for item_pre_anvil's item_repair_cost/level_repair_cost (#1385)

(commit: f95e5af)
noreply at
Fix enum back compat after Spigot changes

Villager professions, cat types, and frog types were changed from enums to interfaces. If built against these changes, they break backwards binary compatibility when invoking their methods. So reflection was needed. Used Registry where possible, but until 1.20.4 Cat.Type didn't extend Keyed and wasn't added to the Registry.
(commit: 04ec9ef)
PseudoKnight at
Build enchantments by key

Fixes possible warnings in startup logs in versions prior to 1.20.3. Functionality is unaffected.
(commit: fe38fe6)
PseudoKnight at
Improve psend_block_damage()

* Add source entity argument
* Optionally ignore source entity behavior, allowing block damage to be modified independently
* Accept integers for discrete damage states
(commit: 8d82ee3)
PseudoKnight at
Fix location shift in block_break so dropped items aren't placed into adjacent blocks. (#1388)

(commit: 1a9ad32)
noreply at
Fix pinventory_holder() for virtual inventories
(commit: 8d8f807)
PseudoKnight at
Fix cmdline interpreter exception on empty input
(commit: 9c178e9)
Pieter12345 at
Fix crash when registering over a vanilla command
(commit: 7a5dd5b)
PseudoKnight at
Add support for Minecraft 1.21.3
(commit: 62e47f3)
src/main/java/com/laytonsmith/commandhelper/CommandHelperPlugin.java src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCPotionEffectType.java src/main/java/com/laytonsmith/abstraction/enums/MCGameRule.java src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCPatternShape.java src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCTreeSpecies.java src/main/java/com/laytonsmith/abstraction/enums/MCSound.java src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCBiomeType.java src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCSound.java src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCAttributeModifier.java src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCPainting.java src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCEnchantment.java src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCProfession.java pom.xml src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCEntityType.java src/main/java/com/laytonsmith/abstraction/enums/MCAttribute.java src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCArt.java src/main/java/com/laytonsmith/abstraction/enums/MCEntityType.java src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCAttribute.java src/main/java/com/laytonsmith/abstraction/blocks/MCMaterial.java src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCPotionType.java src/main/java/com/laytonsmith/abstraction/enums/MCParticle.java src/main/java/com/laytonsmith/core/functions/EntityManagement.java src/main/java/com/laytonsmith/abstraction/bukkit/BukkitConvertor.java src/main/resources/docs/Upgrade_Guide src/main/resources/functionDocs/entity_spec src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCItemMeta.java src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCLivingEntity.java src/main/java/com/laytonsmith/abstraction/enums/MCTreeSpecies.java src/main/resources/docs/Compatibility src/main/java/com/laytonsmith/abstraction/MCParticleData.java src/main/java/com/laytonsmith/core/functions/Environment.java src/main/java/com/laytonsmith/core/ObjectGenerator.java src/main/java/com/laytonsmith/abstraction/enums/MCVersion.java src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCTrimPattern.java src/main/java/com/laytonsmith/PureUtilities/ClassLoading/DynamicEnum.java src/main/java/com/laytonsmith/abstraction/enums/MCTreeType.java src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCPlayer.java src/main/java/com/laytonsmith/abstraction/bukkit/blocks/BukkitMCMaterial.java src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCTrimMaterial.java src/main/java/com/laytonsmith/abstraction/enums/MCBiomeType.java src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCParticle.java
PseudoKnight at
Fix formatting in cmdline examples
(commit: 0fffa8b)
PseudoKnight at
Fix versions for knockback resistance attributes
(commit: 4259442)
PseudoKnight at
Update plugin versions in extension development docs
(commit: 5a53dd3)
PseudoKnight at
Fix byte_array endianness reset when byte_array allocates more memory

Occurred first when a `byte_array` grows to size 1024, required calling `ba_set_little_endian(true)` again after more memory was allocated as a workaround. With this commit, the endianness is preserved correctly.
(commit: bf2a6fe)
Pieter12345 at
Remove optional minus sign in hex/bin/oct/dec number regexes

Minus signs in front of these literals in code are handled elsewhere. Cases where this optional minus sign are present will always return in a `NumberFormatException` due to the substring calls not accounting for it. This only seems to affect `xml_ready()`, which calls the method directly.
Fixes errors in core by for example: `xml_read('<a>-0xFF</a>', 'a')`.
(commit: cf2aa81)
Pieter12345 at
Support max hex/oct/bin literals + Fix their uncaught exceptions

- Support max 64-bit hex/oct/bin value literals, rather than only up to 63 bits.
- Fix uncaught exceptions when supplying hex/oct/bin literals that do not fit 63 bits (64 bits with the above mentioned change).
- Add tests for these number formats.
(commit: 1190377)
Pieter12345 at
Minor refactoring

No functional changes.
(commit: 2da11c0)
Pieter12345 at
Fix NPE in LangServ on bad aliases
(commit: b0cf01a)
PseudoKnight at
Improve early detection of errant symbols

Checks binary operators for unexpected adjacent symbols during auto concat rewrite.

Does adjacent symbol token detection in aliases too. This was limited to when inPureMScript, skipping the right side of aliases.
(commit: 9c971b5)
PseudoKnight at
Include only existing states in blockdata meta (Fixes #1350)

This is only fixed in 1.20.6 or later. Setting only specified blockdata meta was fixed upstream in 1.21.3.
(commit: a29fee5)
PseudoKnight at
Disable Static Analysis locally for x_recompile_includes (Fixes #1222)

This solution is fine for this experimental function. This commit also improves recursion a bit.
(commit: 8f7b8f5)
PseudoKnight at
Update item meta documentation
(commit: 75366d4)
PseudoKnight at
Fix 1.16.5 compatibility

Was broken since build-500
(commit: 01bdb8a)
PseudoKnight at
Fix procedure as argument in sprintf() and lsprintf() not resolving

Fix procedure as second and third argument in `sprintf()` and `lsprintf()` respectively causing a compile error when trying to resolve the procedure during optimization.

Fixes:
```
:proc _a() { return 123; } msg(sprintf('%x', _a()));
COMPILE ERROR: The function "_a" does not exist in the Java Interpreter
        at :Interpreter:1.45
```
(commit: adfe452)
Pieter12345 at
Fix error in core using inc/dec on procedures

Fixes error in core for:
```
proc _a() { return 1; } _a()++;
```
(commit: 2d41b43)
Pieter12345 at
Fix core error creating item with non-item material

Until recently, creating an item stack with a material that is not an item type would work but act like an empty item stack when added to an inventory. Paper now validates if it's an item type on creation. This makes CH throw an exception on invalid item types, but continues to convert legacy block-only items to air. material_info() can now be used to check if a material "isItem".
(commit: 8d1b498)
PseudoKnight at
Change Procedure instanceof check to cached variant

Improves runtime performance of procedure calls where the procedure parameters or return value are explicitly provided in user code.
(commit: d30e319)
Pieter12345 at
Change closure varargs instanceof check to cached variant
(commit: 1c47d1a)
Pieter12345 at
Change closure return type instanceof check to cached variant
(commit: f828f47)
Pieter12345 at
Improve sprintf() and lsprintf() runtime performance
(commit: f753951)
Pieter12345 at
Finish adding player_advancement_done
(commit: ababae6)
PseudoKnight at
Fix inconsistency getting an item from a player slot

Previously when getting the item in hand, it would return an empty item stack instead of null. This was inconsistent with all other slot values, resulting in unexpected behavior and core errors in some item meta functions. To fix this inconsistent function behavior, I decided to return empty values where that would have already been a handled output, avoiding breaking any scripts where possible. This also matches the previous behavior of the most common use cases.
(commit: daf8c53)
PseudoKnight at
Fix possible thread leak in PN when recompiled

Bug affected the Persistence Network when it was configured to use a file data source (yml, json, ini, csv, xml). If a recompile is followed by garbage collection, a thread leak may occur. Setting corePoolSize to zero allows the thread to timeout, and ultimately the whole pool to be garbage collected.
(commit: 300752c)
PseudoKnight at
fix: pom.xml to reduce vulnerabilities (#1394)

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JAVA-ORGJETBRAINSKOTLIN-2393744

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
(commit: 569bc8a)
noreply at
Bump micromatch in /src/main/resources/apps.methodscript.com (#1390)

Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(commit: 575bc6e)
noreply at
Support byte[] -> byte_array in Construct.GetConstruct()
(commit: 978a844)
Pieter12345 at
Support byte_array  -> byte[] in Construct.GetPOJO()
(commit: 63ff249)
Pieter12345 at