Permalink
Browse files

Fix entity_spec() in projectile_launch and player_fish

  • Loading branch information...
PseudoKnight committed Oct 23, 2017
1 parent 66e4271 commit 59700b14357e2386ef69ea8f68ca1182c2b6a73d
@@ -264,7 +264,7 @@ public Object _GetObject() {
@Override
public MCProjectile getEntity() {
return new BukkitMCProjectile(ple.getEntity());
return (MCProjectile) BukkitConvertor.BukkitGetCorrectEntity(ple.getEntity());
}
@Override
@@ -12,6 +12,7 @@
import com.laytonsmith.abstraction.StaticLayer;
import com.laytonsmith.abstraction.blocks.MCBlock;
import com.laytonsmith.abstraction.blocks.MCBlockFace;
import com.laytonsmith.abstraction.bukkit.BukkitConvertor;
import com.laytonsmith.abstraction.bukkit.BukkitMCBookMeta;
import com.laytonsmith.abstraction.bukkit.BukkitMCItemStack;
import com.laytonsmith.abstraction.bukkit.BukkitMCLocation;
@@ -761,7 +762,7 @@ public MCEntity getCaught() {
if (e.getCaught() == null) {
return null;
}
return new BukkitMCEntity(e.getCaught());
return BukkitConvertor.BukkitGetCorrectEntity(e.getCaught());
}
@Override

0 comments on commit 59700b1

Please sign in to comment.