From 4c585f647eb8998616a6af35be6167b2337f1ef0 Mon Sep 17 00:00:00 2001 From: zontreck Date: Sat, 3 May 2025 12:40:50 -0700 Subject: [PATCH] Remove old deprecated code in RTPFactory --- AriasServerUtils/RTPFactory.cs | 36 ---------------------------------- AriasServerUtils/modinfo.json | 4 ++-- 2 files changed, 2 insertions(+), 38 deletions(-) diff --git a/AriasServerUtils/RTPFactory.cs b/AriasServerUtils/RTPFactory.cs index ef37717..d2544a2 100644 --- a/AriasServerUtils/RTPFactory.cs +++ b/AriasServerUtils/RTPFactory.cs @@ -59,42 +59,6 @@ public class RTPFactory check.Y = height + 1; PPos.Y = height + 1; return PPos; - - int Y = 255; - bool lastBlockAir = true; - bool lastLastBlockAir = true; - bool curBlockAir = true; - bool safe = false; - for (Y = 255; Y > 1; Y--) - { - // Manually scan downwards - check.Y = Y; - var current = BA.GetBlock(check); - - if (current.BlockMaterial != EnumBlockMaterial.Air) - { - curBlockAir = false; - } - - - - lastLastBlockAir = lastBlockAir; - lastBlockAir = curBlockAir; - - - if (!curBlockAir && lastBlockAir && lastLastBlockAir) - { - // We found a safe spot to land - check.Y++; - safe = true; - break; - } - } - - if (!safe) return null; - - PPos.Y = check.Y; - return PPos; } /// diff --git a/AriasServerUtils/modinfo.json b/AriasServerUtils/modinfo.json index 93e2621..bc18a83 100644 --- a/AriasServerUtils/modinfo.json +++ b/AriasServerUtils/modinfo.json @@ -3,8 +3,8 @@ "modid": "ariasserverutils", "name": "Aria's Server Utilities", "authors": ["zontreck"], - "description": "A collection of server utilities\n\nBuild Date: 05-3-2025 @ 12:34 PM MST", - "version": "1.0.10-dev.1", + "description": "A collection of server utilities\n\nBuild Date: 05-3-2025 @ 12:40 PM MST", + "version": "1.0.10-dev.2", "dependencies": { "game": "" }