doFill test fix
This commit is contained in:
parent
77904b70d4
commit
a0b30fa851
@ -28,7 +28,7 @@ import cpw.mods.fml.common.registry.VillagerRegistry;
|
|||||||
* @dependencies: IC2 API, EBXL API
|
* @dependencies: IC2 API, EBXL API
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Mod(modid = "TConstruct", name = "TConstruct", version = "1.5.1_1.3.2.dev25", dependencies = "required-after:Forge@[7.7.1.659,)")
|
@Mod(modid = "TConstruct", name = "TConstruct", version = "1.5.1_1.3.2.dev26", dependencies = "required-after:Forge@[7.7.1.659,)")
|
||||||
@NetworkMod(serverSideRequired = false, clientSideRequired = true, channels = { "TConstruct" }, packetHandler = mods.tinker.tconstruct.TPacketHandler.class)
|
@NetworkMod(serverSideRequired = false, clientSideRequired = true, channels = { "TConstruct" }, packetHandler = mods.tinker.tconstruct.TPacketHandler.class)
|
||||||
public class TConstruct
|
public class TConstruct
|
||||||
{
|
{
|
||||||
|
@ -95,17 +95,20 @@ public class CastingBasinLogic extends InventoryLogic implements ILiquidTank, IT
|
|||||||
{
|
{
|
||||||
liquid = resource.copy();
|
liquid = resource.copy();
|
||||||
int capacity = getCapacity();
|
int capacity = getCapacity();
|
||||||
if (liquid.amount > capacity)
|
|
||||||
|
if (doFill)
|
||||||
{
|
{
|
||||||
liquid.amount = capacity;
|
if (liquid.amount > capacity)
|
||||||
|
{
|
||||||
|
liquid.amount = capacity;
|
||||||
|
}
|
||||||
|
if (liquid.amount == capacity)
|
||||||
|
{
|
||||||
|
castingDelay = LiquidCasting.instance.getCastingDelay(liquid, inventory[0]);
|
||||||
|
}
|
||||||
|
renderOffset = liquid.amount;
|
||||||
|
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||||
}
|
}
|
||||||
if (liquid.amount == capacity)
|
|
||||||
{
|
|
||||||
castingDelay = LiquidCasting.instance.getCastingDelay(liquid, inventory[0]);
|
|
||||||
}
|
|
||||||
|
|
||||||
renderOffset = liquid.amount;
|
|
||||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
|
||||||
return liquid.amount;
|
return liquid.amount;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -95,17 +95,20 @@ public class CastingTableLogic extends InventoryLogic implements ILiquidTank, IT
|
|||||||
{
|
{
|
||||||
liquid = resource.copy();
|
liquid = resource.copy();
|
||||||
int capacity = getCapacity();
|
int capacity = getCapacity();
|
||||||
if (liquid.amount > capacity)
|
|
||||||
{
|
|
||||||
liquid.amount = capacity;
|
|
||||||
}
|
|
||||||
if (liquid.amount == capacity)
|
|
||||||
{
|
|
||||||
castingDelay = LiquidCasting.instance.getCastingDelay(liquid, inventory[0]);
|
|
||||||
}
|
|
||||||
|
|
||||||
renderOffset = liquid.amount;
|
if (doFill)
|
||||||
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
{
|
||||||
|
if (liquid.amount > capacity)
|
||||||
|
{
|
||||||
|
liquid.amount = capacity;
|
||||||
|
}
|
||||||
|
if (liquid.amount == capacity)
|
||||||
|
{
|
||||||
|
castingDelay = LiquidCasting.instance.getCastingDelay(liquid, inventory[0]);
|
||||||
|
}
|
||||||
|
renderOffset = liquid.amount;
|
||||||
|
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
|
||||||
|
}
|
||||||
return liquid.amount;
|
return liquid.amount;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user