Skip to content

Commit

Permalink
correction to explode events
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 8, 2022
1 parent beb2089 commit 773c18a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Expand Up @@ -71,7 +71,7 @@ public boolean applyDetermination(ScriptPath path, ObjectTag determinationObj) {
event.setYield(Float.parseFloat(determination));
return true;
}
if (determination.contains(",")) { // Loose "contains any location-like value" check
if (determination.contains(",") || determination.startsWith("li@")) { // Loose "contains any location-like value" check
event.blockList().clear();
for (String loc : ListTag.valueOf(determination, getTagContext(path))) {
LocationTag location = LocationTag.valueOf(loc, getTagContext(path));
Expand Down
Expand Up @@ -88,7 +88,7 @@ public boolean applyDetermination(ScriptPath path, ObjectTag determinationObj) {
event.setYield(Float.parseFloat(determination));
return true;
}
if (determination.contains(",")) { // Loose "contains any location-like value" check
if (determination.contains(",") || determination.startsWith("li@")) { // Loose "contains any location-like value" check
event.blockList().clear();
for (String loc : ListTag.valueOf(determination, getTagContext(path))) {
LocationTag location = LocationTag.valueOf(loc, getTagContext(path));
Expand Down
Expand Up @@ -789,9 +789,7 @@ public void adjust(Mechanism mechanism) {
// @input None
// @description
// Causes the chunk to be entirely deleted and reformed from the world's seed.
// The underlying method for this was disabled in recent Spigot versions with a vile message from user-hating Spigot dev md_5,
// "Not supported in this Minecraft version! Unless you can fix it, this is not a bug :)"
// Unfortunately due to md_5's attitude on this problem, this mechanism will not work for the time being.
// At time of writing this method only works as expected on Paper, and will error on Spigot.
// -->
if (mechanism.matches("regenerate")) {
getBukkitWorld().regenerateChunk(getX(), getZ());
Expand Down

0 comments on commit 773c18a

Please sign in to comment.