From 84a5802df62eb0c0f4d9818d0a3c2c8c227796f9 Mon Sep 17 00:00:00 2001 From: "PrikolMen:-b" <44779902+PrikolMen@users.noreply.github.com> Date: Wed, 13 Mar 2024 00:49:24 +0400 Subject: [PATCH] few changes --- lua/entities/endless_pizza_box/init.yue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lua/entities/endless_pizza_box/init.yue b/lua/entities/endless_pizza_box/init.yue index 136e8e1..719857c 100644 --- a/lua/entities/endless_pizza_box/init.yue +++ b/lua/entities/endless_pizza_box/init.yue @@ -39,6 +39,7 @@ ENT.EatPiece = ( ply, index ) => return ply\SetHealth( health + scp458_heal\GetInt! ) + return ENT.GetAvailablePieces = => avaliable, count = {}, 0 @@ -74,6 +75,10 @@ ENT.Use = ( ply ) => duration = @SequenceDuration( @GetSequence! ) @UsageTimeout = curTime + duration timer.Simple duration, -> - if @IsValid! - for index = 1, 8 - @SetBodygroup( index, 0 ) + unless @IsValid! + return + + for index = 1, 8 + @SetBodygroup( index, 0 ) + + return