Skip to content

Commit

Permalink
1.8 update
Browse files Browse the repository at this point in the history
  • Loading branch information
slide23 committed Feb 5, 2015
1 parent 1c17d46 commit 5654225
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
16 changes: 12 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>nu.nerd</groupId>
<artifactId>KitchenSink</artifactId>
<version>0.8.2</version>
<version>0.9.0</version>
<packaging>jar</packaging>
<name>KitchenSink</name>
<properties>
Expand Down Expand Up @@ -33,13 +33,13 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.7.10-R0.1-SNAPSHOT</version>
<version>1.8-R0.1-SNAPSHOT</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId>
<version>1.7.10-R0.1-SNAPSHOT</version>
<version>1.8-R0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>de.bananaco</groupId>
Expand All @@ -55,10 +55,18 @@
<dependency>
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<version>3.4.0</version>
<version>3.6.3-SNAPSHOT</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
</repository>
<repository>
<id>shadowvolt-repo</id>
<url>http://ci.shadowvolt.com/plugin/repository/everything/</url>
</repository>
<repository>
<id>thezomg-repo</id>
<url>http://maven.thezomg.com/content/groups/public/</url>
Expand Down
2 changes: 1 addition & 1 deletion src/nu/nerd/kitchensink/KitchenSink.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.craftbukkit.v1_7_R4.CraftWorld;
import org.bukkit.craftbukkit.v1_8_R1.CraftWorld;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Boat;
import org.bukkit.entity.EntityType;
Expand Down
12 changes: 6 additions & 6 deletions src/nu/nerd/kitchensink/KitchenSinkListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
import java.util.*;
import java.util.Map.Entry;

import net.minecraft.server.v1_7_R4.MovingObjectPosition;
import net.minecraft.server.v1_7_R4.Vec3D;
import net.minecraft.server.v1_7_R4.EntityArrow;
import net.minecraft.server.v1_8_R1.MovingObjectPosition;
import net.minecraft.server.v1_8_R1.Vec3D;
import net.minecraft.server.v1_8_R1.EntityArrow;

import org.bukkit.*;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.NoteBlock;
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftArrow;
import org.bukkit.craftbukkit.v1_8_R1.entity.CraftArrow;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Ageable;
import org.bukkit.entity.Entity;
Expand Down Expand Up @@ -417,8 +417,8 @@ public void onProjectileHit(ProjectileHitEvent event) {

EntityArrow arrow = ((CraftArrow) event.getEntity()).getHandle();

Vec3D v0 = Vec3D.a(arrow.locX, arrow.locY, arrow.locZ);
Vec3D v1 = Vec3D.a(arrow.locX + arrow.motX, arrow.locY + arrow.motY, arrow.locZ + arrow.motZ);
Vec3D v0 = new Vec3D(arrow.locX, arrow.locY, arrow.locZ);
Vec3D v1 = new Vec3D(arrow.locX + arrow.motX, arrow.locY + arrow.motY, arrow.locZ + arrow.motZ);
MovingObjectPosition pos = arrow.world.rayTrace(v0, v1, false, true, false);

// Checking if the block hit by the arrow is TNT is inaccurate,
Expand Down

0 comments on commit 5654225

Please sign in to comment.