mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-18 03:15:22 +00:00
- Fck that TC bug. Not our bug *looking at Azanor*
- Server crash fixxes - GrowingNodeBehavior rebalanced
This commit is contained in:
1 parent
059c173333
commit
ce6b7bddef
5 files changed
+8
-5
No files matched your search
@@ -36,7 +36,7 @@ import java.util.Map;
|
||||
public class GrowingNodeBehavior {
|
||||
|
||||
public static final double SATURATION_DIFFICULTY = 10D;
|
||||
public static final double SATURATION_CAP = 200D;
|
||||
public static final double SATURATION_CAP = 100D;
|
||||
public static final int HAPPINESS_CAP = 1000;
|
||||
|
||||
//The node the growing node attacks.
|
||||
|
||||
@@ -54,10 +54,6 @@ public class TileExtendedNode extends TileNode {
|
||||
|
||||
public TileExtendedNode() {
|
||||
this.behavior = new GrowingNodeBehavior(this);
|
||||
|
||||
if(new Random().nextBoolean()) {
|
||||
extendedNodeType = ExtendedNodeType.GROWING;
|
||||
}
|
||||
}
|
||||
|
||||
public void addTypeSpecificAspects(ExtendedNodeType extendedNodeType) {
|
||||
|
||||
@@ -3,6 +3,8 @@ package makeo.gadomancy.common.network.packets;
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessage;
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
|
||||
import cpw.mods.fml.common.network.simpleimpl.MessageContext;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import makeo.gadomancy.common.blocks.tiles.TileExtendedNode;
|
||||
import makeo.gadomancy.common.blocks.tiles.TileInfusionClaw;
|
||||
@@ -56,6 +58,7 @@ public class PacketStartAnimation implements IMessage, IMessageHandler<PacketSta
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IMessage onMessage(PacketStartAnimation message, MessageContext ctx) {
|
||||
switch (message.annimationId) {
|
||||
case ID_INFUSIONCLAW:
|
||||
|
||||
@@ -3,6 +3,8 @@ package makeo.gadomancy.common.network.packets;
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessage;
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
|
||||
import cpw.mods.fml.common.network.simpleimpl.MessageContext;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.util.Vec3;
|
||||
@@ -54,6 +56,7 @@ public class PacketTCNodeBolt implements IMessage, IMessageHandler<PacketTCNodeB
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IMessage onMessage(PacketTCNodeBolt p, MessageContext ctx) {
|
||||
Thaumcraft.proxy.nodeBolt(Minecraft.getMinecraft().theWorld, p.x, p.y, p.z, p.targetX, p.targetY, p.targetZ);
|
||||
return null;
|
||||
|
||||
@@ -136,6 +136,7 @@ public class JarMultiblockHandler {
|
||||
if(!RegisteredIntegrations.automagy.handleNodeJarVisCost(wandStack, player)) return;
|
||||
|
||||
if(world.isRemote) return;
|
||||
if(!RegisteredIntegrations.automagy.isPresent()) return;
|
||||
replaceJar(world, result[0], result[1], result[2], false);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user