Skip to content

Commit

Permalink
Fix entity_spec() in projectile_launch and player_fish
Browse files Browse the repository at this point in the history
  • Loading branch information
PseudoKnight committed Oct 23, 2017
1 parent 66e4271 commit 59700b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -264,7 +264,7 @@ public Object _GetObject() {

@Override
public MCProjectile getEntity() {
return new BukkitMCProjectile(ple.getEntity());
return (MCProjectile) BukkitConvertor.BukkitGetCorrectEntity(ple.getEntity());
}

@Override
Expand Down
Expand Up @@ -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;
Expand Down Expand Up @@ -761,7 +762,7 @@ public MCEntity getCaught() {
if (e.getCaught() == null) {
return null;
}
return new BukkitMCEntity(e.getCaught());
return BukkitConvertor.BukkitGetCorrectEntity(e.getCaught());
}

@Override
Expand Down

0 comments on commit 59700b1

Please sign in to comment.