Skip to content

Commit

Permalink
Fixed the weird velocity
Browse files Browse the repository at this point in the history
  • Loading branch information
John Klay committed Aug 4, 2020
1 parent 8d01258 commit 9703917
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1 deletion.
Binary file modified out/artifacts/Bomb_Lobbers_jar/Bomb Lobbers.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/com/CoocooFroggy/bomblobbers/DirectHitChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void trackTNT(Entity tntEntity, Player thrower) {

if (currentPlayer.getBoundingBox().overlaps(tntEntity.getBoundingBox())) {
// getLogger().info("Same block (success)!");
currentPlayer.setVelocity(tntEntity.getLocation().getDirection().multiply(4));
currentPlayer.setVelocity(tntEntity.getVelocity().multiply(3));
Player finalCurrentPlayer = currentPlayer;
Bukkit.getScheduler().runTask(Main.plugin, new Runnable() {
@Override
Expand Down

0 comments on commit 9703917

Please sign in to comment.