Advertisement
Guest User

NanobotBuildAndRepairSystemBlock.cs: 258

a guest
Dec 8th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement