mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 10:34:25 +00:00
Merge branch 'dev' into syntax-highlighter-unified
This commit is contained in:
commit
40cac999c4
16 files changed
+454
-6
No files matched your search
@@ -140,4 +140,12 @@ public class ScriptEnergyBarrier<T extends EntityEnergyBarrier> extends ScriptEn
|
||||
public int getBarrierType() {
|
||||
return entity instanceof EntityEnergyDome ? 0 : 1;
|
||||
}
|
||||
|
||||
// ==================== SYNC ====================
|
||||
|
||||
public void syncClient() {
|
||||
if (entity.addedToChunk) {
|
||||
entity.sendClientSync();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -353,12 +353,20 @@ public class ScriptEnergyProjectile<T extends EntityEnergyProjectile> extends Sc
|
||||
}
|
||||
}
|
||||
|
||||
public void syncClient() {
|
||||
if (entity.addedToChunk) {
|
||||
entity.sendClientSync();
|
||||
}
|
||||
}
|
||||
|
||||
protected void ensureSpawned() {
|
||||
if (!entity.addedToChunk && entity.worldObj != null) {
|
||||
entity.worldObj.spawnEntityInWorld(entity);
|
||||
if (!entity.worldObj.isRemote) {
|
||||
EventHooks.onEnergyProjectileFired(entity);
|
||||
}
|
||||
} else if (entity.addedToChunk) {
|
||||
entity.sendClientSync();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user