Skip to content

Commit

Permalink
More bug fixes.
Browse files Browse the repository at this point in the history
Signed-off-by: me4502 <mnmiller1@hotmail.com>
  • Loading branch information
me4502 committed Nov 3, 2012
1 parent 8a8c66e commit 9c9edd9
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -141,9 +141,9 @@ else if(data[0].equalsIgnoreCase("p")) {
else if(data[0].equalsIgnoreCase("v")) {
try {
double x, y, z;
x = Double.parseDouble(getSign().getLine(2).split(":")[0]);
y = Double.parseDouble(getSign().getLine(2).split(":")[1]);
z = Double.parseDouble(getSign().getLine(2).split(":")[2]);
x = Double.parseDouble(data[1].split(",")[0]);
y = Double.parseDouble(data[1].split(",")[1]);
z = Double.parseDouble(data[1].split(",")[2]);
ent.setVelocity(new org.bukkit.util.Vector(x,y,z));
}
catch(Exception e){
Expand All @@ -164,8 +164,8 @@ else if(data[0].equalsIgnoreCase("s")) {
ItemStack slot = new ItemStack(Item.byId[Integer.parseInt(bit.split(";")[0].split(":")[1])], 1, d);
try {
for(int e = 1; e < bit.split(";").length; e++) {
slot.addEnchantment(Enchantment.byId[Integer.parseInt(bit.split(";")[e].split(":")[1])],
Integer.parseInt(bit.split(";")[e].split(":")[2]));
slot.addEnchantment(Enchantment.byId[Integer.parseInt(bit.split(";")[e].split(":")[0])],
Integer.parseInt(bit.split(";")[e].split(":")[1]));
}
}
catch(Exception e){}
Expand Down

0 comments on commit 9c9edd9

Please sign in to comment.