Skip to content

OnWaterPurify

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnWaterPurify( WaterPurifier instance, float timeCooked )
{
    Puts( "OnWaterPurify works!" );
}

Location

  • WaterPurifier::ConvertWater(float timeCooked)
csharp
//---
	Item slot = this.waterStorage.inventory.GetSlot(0);
	if (this.stopWhenOutputFull && slot != null && slot.amount >= slot.MaxStackable())
	{
		return;
	}
	if (Interface.CallHook("OnWaterPurify", this, timeCooked) != null)
	{
		return;
	}
	float num = timeCooked * ((float)this.waterToProcessPerMinute / 60f);
	if (slot != null)
//---

Released under the MIT License.