diff --git a/scripts/general.lua b/scripts/general.lua index ccec87a2..40b6ee46 100644 --- a/scripts/general.lua +++ b/scripts/general.lua @@ -79,4 +79,18 @@ events.TICK:register(function () end end) -return General \ No newline at end of file +events.RENDER:register(function(_, context) + local shouldRenderHead = false + if (context ~= "FIRST_PERSON" and (not renderer:isFirstPerson())) or + context == "FIRST_PERSON_WORLD" or + context == "WORLD" or + context == "OTHER" or + context == "PAPERDOLL" or + context == "MINECRAFT_GUI" or + context == "FIGURA_GUI" then + shouldRenderHead = true + end + models.models.main.Avatar.Head:setVisible(shouldRenderHead) +end) + +return General diff --git a/scripts/physics.lua b/scripts/physics.lua index e2643f51..257dcc63 100644 --- a/scripts/physics.lua +++ b/scripts/physics.lua @@ -76,7 +76,7 @@ events.RENDER:register(function (delta, context) local tailRot = vectors.vec3(0, 0, 0) local hairAccessoryLineRot = vectors.vec3(0, 0, 0) local rotLimit = {{{-60, 60}, {-30, 30}}, {{0, 180}, {-90, 90}}} --物理演算の可動範囲:1. 尻尾:{1-1. 上下方向, 1-2. 左右方向}, 2. 髪飾りのヒモ:{2-1. 前後方向, 2-2. 左右方向} - if (context ~= "FIRST_PERSON" or client:hasIrisShader()) and (Physics.EnablePyhsics[1] or Physics.EnablePyhsics[2]) then + if (context ~= "FIRST_PERSON" or client:hasShaderPack()) and (Physics.EnablePyhsics[1] or Physics.EnablePyhsics[2]) then local playerPose = player:getPose() local rideVehicle = player:getVehicle() ~= nil if SitDown.IsAnimationPlaying or rideVehicle then