Skip to content

Commit

Permalink
fix: Trim was not going down to the floor on the right side.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vahor committed Jun 21, 2022
1 parent 60e89fe commit a9c09ba
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
SEE : https://vahor.fr/posts/86650a33-7999-48d9-b676-306bb4c4b3ec

# SimpleSchematic

A Minecraft plugin to simplify the usage of schematics.

- Preview schematics directly in the gui
- Fully customizable
- Configuration per schematic folder : custom icon, disable preview and more
- Translate into any language using a configuration file


## Requirements
- Java 8
- Spigot 1.8 (Tested up to 1.12)
## Links

[Blog Post FR](https://vahor.fr/posts/86650a33-7999-48d9-b676-306bb4c4b3ec)\
[Latest releases](https://github.com/Vahor/SimpleSchematics/releases)\
[GPL-3 License](https://choosealicense.com/licenses/gpl-3.0/)


## Contributing

Contributions are always welcome!

However, this plugin was made for those servers, any changes that will negatively impact thoses servers will be denied:

- MazerCraft

6 changes: 5 additions & 1 deletion src/main/java/fr/vahor/simpleschematics/API.java
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,11 @@ public static void trimSelection(SchematicsPlayer player) throws NullPointerExce
// bottom right corner - first left - -x then -z
Vector firstNonEmptyInFrontSide = getFirstNonEmptyBlock(world,
maxPoint,
firstNonEmptyInLeftSide,
new Vector(
firstNonEmptyInLeftSide.getX(),
minPoint.getY(),
firstNonEmptyInLeftSide.getZ()
),
-1, 0, true, 0, -1);

// top right corner - "center" - -x then z
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ else if (isRightClick) {
schematicsPlayer,
targetBlock
);
player.sendMessage(targetBlock.toString());

}
}
Expand Down
2 changes: 1 addition & 1 deletion version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Tue Mar 08 17:03:34 CET 2022
major=0
minor=0
patch=24
patch=25

0 comments on commit a9c09ba

Please sign in to comment.