From c7daaafa656632b3ee1e5267fbbc58fca6f058ad Mon Sep 17 00:00:00 2001 From: GabsPuNs Date: Fri, 5 Jun 2026 18:28:16 -0400 Subject: [PATCH] Update Random.cpp --- Minecraft.World/Random.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Minecraft.World/Random.cpp b/Minecraft.World/Random.cpp index c3cec54b..7f6cbf0a 100644 --- a/Minecraft.World/Random.cpp +++ b/Minecraft.World/Random.cpp @@ -74,8 +74,7 @@ int Random::nextInt() int Random::nextInt(int n) { - assert (n>0); - + //assert (n>0); //This makes DLCs crash in Debug if ((n & -n) == n) // i.e., n is a power of 2 return static_cast((static_cast(next(31)) * n) >> 31); // 4J Stu - Made int64_t instead of long