mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Get Lasers kind of working vs. dediservers
This commit is contained in:
1 parent
dd421f7308
commit
327389a88c
5 files changed
+91
-12
No files matched your search
@@ -38,6 +38,7 @@ import mekanism.common.inventory.container.ContainerSalinationController;
|
||||
import mekanism.common.inventory.container.ContainerSeismicVibrator;
|
||||
import mekanism.common.inventory.container.ContainerTeleporter;
|
||||
import mekanism.common.inventory.container.ContainerUpgradeManagement;
|
||||
import mekanism.common.network.PacketLaserFire.LaserFireMessage;
|
||||
import mekanism.common.tile.TileEntityAdvancedElectricMachine;
|
||||
import mekanism.common.tile.TileEntityAdvancedFactory;
|
||||
import mekanism.common.tile.TileEntityBin;
|
||||
@@ -145,7 +146,7 @@ public class CommonProxy
|
||||
|
||||
/**
|
||||
* Registers a client-side sound, assigned to a TileEntity.
|
||||
* @param tile - TileEntity who is registering the sound
|
||||
* @param tileEntity - TileEntity who is registering the sound
|
||||
*/
|
||||
public void registerSound(TileEntity tileEntity) {}
|
||||
|
||||
@@ -474,5 +475,13 @@ public class CommonProxy
|
||||
return context.getServerHandler().playerEntity;
|
||||
}
|
||||
|
||||
public void renderLaser(World world, Coord4D from, Coord4D to, ForgeDirection direction) {}
|
||||
public void renderLaser(World world, Coord4D from, Coord4D to, ForgeDirection direction)
|
||||
{
|
||||
Mekanism.packetHandler.sendToAllAround(new LaserFireMessage(from, to, direction), from.getTargetPoint(50D));
|
||||
}
|
||||
|
||||
public boolean isClientSide()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user