Skip to content

Commit

Permalink
Revert "前後のバージョンにも互換性を確保"
Browse files Browse the repository at this point in the history
This reverts commit 0f8f2ed.
  • Loading branch information
Gakuto1112 committed Aug 21, 2024
1 parent 9f4e4dc commit 8b29462
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 156 deletions.
152 changes: 0 additions & 152 deletions scripts/compatibility_utils.lua

This file was deleted.

1 change: 0 additions & 1 deletion scripts/index.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
--クラスのインスタンス化
events.ENTITY_INIT:register(function ()
General = require("scripts.general")
CompatibilityUtils = require("scripts.utils.compatibility_utils")
TextureGenerator = require("scripts.texture_generator")
Physics = require("scripts.physics")
require("scripts.player")
Expand Down
6 changes: 3 additions & 3 deletions scripts/wing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ events.TICK:register(function ()

local lifeTime = 2 ^ Wing.ParticleDuration / 4 * 60
for _, modelPart in ipairs({models.models.main.Player.Torso.Body.ButterflyB.RightWing.RightTopWing.ParticleAnchorRT, models.models.main.Player.Torso.Body.ButterflyB.LeftWing.LeftTopWing.ParticleAnchorLT}) do
particles:newParticle(CompatibilityUtils:checkParticle("minecraft:firework"), getAbsoluteModelPos(modelPart)):color(Color.Color[1]):scale(0.1):lifetime(lifeTime)
particles:newParticle("firework", getAbsoluteModelPos(modelPart)):color(Color.Color[1]):scale(0.1):lifetime(lifeTime)
end
for _, modelPart in ipairs({models.models.main.Player.Torso.Body.ButterflyB.RightWing.RightBottomWing.ParticleAnchorRB, models.models.main.Player.Torso.Body.ButterflyB.LeftWing.LeftBottomWing.ParticleAnchorLB}) do
particles:newParticle(CompatibilityUtils:checkParticle("minecraft:firework"), getAbsoluteModelPos(modelPart)):color(Color.Color[2]):scale(0.1):lifetime(lifeTime)
particles:newParticle("firework", getAbsoluteModelPos(modelPart)):color(Color.Color[2]):scale(0.1):lifetime(lifeTime)
end
end
if wingSoundCount == 2 then
sounds:playSound(CompatibilityUtils:checkSound("block.wool.step"), player:getPos(), 0.25, 2)
sounds:playSound("block.wool.step", player:getPos(), 0.25, 2)
end
wingSoundCount = wingSoundCount == 4 and 0 or wingSoundCount + 1
else
Expand Down

0 comments on commit 8b29462

Please sign in to comment.