Skip to content

Commit

Permalink
Fixed /vr not working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ervinchai committed Apr 5, 2020
1 parent 94db45f commit e97e1fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.thevoxelbox</groupId>
<artifactId>VoxelSniper</artifactId>
<version>6.1.0</version>
<version>6.1.1</version>
<packaging>jar</packaging>

<name>VoxelSniper</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.thevoxelbox.voxelsniper.command.VoxelInkCommand;
import com.thevoxelbox.voxelsniper.command.VoxelInkReplaceCommand;
import com.thevoxelbox.voxelsniper.command.VoxelPerformerCommand;
import com.thevoxelbox.voxelsniper.command.VoxelReplaceCommand;
import com.thevoxelbox.voxelsniper.command.VoxelSniperCommand;
import com.thevoxelbox.voxelsniper.command.VoxelUndoCommand;
import com.thevoxelbox.voxelsniper.command.VoxelVariablesCommand;
Expand Down Expand Up @@ -53,6 +54,7 @@ public static void initialize() {
commandManager.registerCommand(new VoxelInkCommand());
commandManager.registerCommand(new VoxelInkReplaceCommand());
commandManager.registerCommand(new VoxelPerformerCommand());
commandManager.registerCommand(new VoxelReplaceCommand());
commandManager.registerCommand(new VoxelSniperCommand());
commandManager.registerCommand(new VoxelUndoCommand());
commandManager.registerCommand(new VoxelVariablesCommand());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public boolean doCommand(Player player, String[] args) {
if (args.length == 0) {
Block selectedBlock = new BlockHelper(player, player.getWorld()).getTargetBlock();
if (selectedBlock != null) {
snipeData.setVoxelSubstance(selectedBlock.getBlockData());
snipeData.getVoxelMessage().voxel();
snipeData.setReplaceSubstance(selectedBlock.getBlockData());
snipeData.getVoxelMessage().replace();
} else {
player.sendMessage(ChatColor.GOLD + "Nothing to imitate replace material. No changes were made.");
}
Expand All @@ -64,8 +64,8 @@ public boolean doCommand(Player player, String[] args) {
}

if (material != null && material.isBlock()) {
snipeData.setVoxelSubstance(material.createBlockData());
snipeData.getVoxelMessage().voxel();
snipeData.setReplaceSubstance(material.createBlockData());
snipeData.getVoxelMessage().replace();
return true;
} else {
player.sendMessage(ChatColor.RED + "You have entered an invalid Item ID.");
Expand Down

0 comments on commit e97e1fc

Please sign in to comment.