Develop 1.8 #20

Merged
Kan18 merged 242 commits from develop-1.8 into master-1.8 2019-11-10 20:52:08 -05:00
2 changed files with 4 additions and 5 deletions
Showing only changes of commit aef22987fa - Show all commits

View File

@@ -5,10 +5,9 @@ local Sound = {
}
function Sound.play(sound, vol)
local speaker = peripheral.find('speaker')
if speaker then
speaker.playSound('minecraft:' .. sound, vol or Sound._volume)
end
peripheral.find('speaker', function(_, s)
s.playSound('minecraft:' .. sound, vol or Sound._volume)
end)
end
function Sound.setVolume(volume)

View File

@@ -46,7 +46,7 @@ end
local Manager = class()
function Manager:init()
self.devices = { }
_G._pp = self
local function keyFunction(event, code, held)
local ie = Input:translate(event, code, held)