Guest User

NanobotBuildAndRepairSystemBlock.cs: 258

a guest
Dec 8th, 2019
101
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MyFixedPoint vinv = welderInventory.MaxVolume;
  2. // Find the cube root of v
  3. double v = Math.Pow(vinv, 1 / 3);
  4. Vector3 vec = new Vector3(v, v, v);
  5.  
  6. _TransportInventory = new Sandbox.Game.MyInventory((float)welderInventory.MaxVolume / MyAPIGateway.Session.InventoryMultiplier, vec, MyInventoryFlags.CanSend); //MaxVolume handled in Pick functions
RAW Paste Data