1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-26 19:37:39 +00:00

And fix the build failing

This commit is contained in:
SquidDev
2019-04-02 21:33:55 +01:00
parent f9e13ca67a
commit 7afc3e5260
3 changed files with 5 additions and 8 deletions

View File

@@ -46,11 +46,10 @@ public class PocketServerComputer extends ServerComputer implements IPocketAcces
@Nullable
@Override
@Deprecated
public Entity getEntity()
{
Entity entity = m_entity;
if( entity == null || m_stack == null || entity.removed ) return null;
if( entity == null || m_stack == null || !entity.isAlive() ) return null;
if( entity instanceof EntityPlayer )
{