// Token: 0x060001CF RID: 463 RVA: 0x0001813C File Offset: 0x0001633C public void ActPlaceBlock() { bool flag = checked (this.PlaceBlockLastTime + 250L) < Main.NowGameTime; if (flag) { DBlock LookingBlock = Ground.GetBeforeBlockInTheDirection(this.Position + this.Height, this.HeadRotation.Forward, 1000, false); bool flag2 = !Information.IsNothing(LookingBlock); if (flag2) { Ground.SetBlock(ref LookingBlock, this.SelectedBlockType); this.PlaceBlockLastTime = Main.NowGameTime; } } }
// Token: 0x060001D0 RID: 464 RVA: 0x000181B4 File Offset: 0x000163B4 public void ActBreakBlock() { bool flag = checked (this.PlaceBlockLastTime + 250L) < Main.NowGameTime; if (flag) { DBlock LookingBlock = Ground.GetBlockInTheDirection(this.Position + this.Height, this.HeadRotation.Forward, 1000, false); bool flag2 = !Information.IsNothing(LookingBlock); if (flag2) { bool flag3 = LookingBlock.Chunk.Index.Y > 0; if (flag3) { Ground.BreakBlock(ref LookingBlock); this.PlaceBlockLastTime = Main.NowGameTime; } } } }