Merge branch 'dev' into syntax-highlighter-unified

This commit is contained in:
bigguy345 committed 2026-03-09 06:22:28 +02:00
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();
}
}