1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-08 11:30:21 +01:00

Fixed disc identifier's counter (and chmod 755)

This commit is contained in:
LeMagnesium 2015-06-29 19:07:09 +02:00
parent 3afe44b0e1
commit 9fc3cfb9a9
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
jukebox = {}
jukebox.tracks = {}
jukebox.nbtracks = 0
jukebox.particles = {}
function make_particles(pos)
@ -140,7 +141,7 @@ local function register_disc(trackname, trackdesc, craftitem)
trackdesc = trackdesc or "???"
craftitem = craftitem or "group:wood"
local id = #jukebox.tracks
local id = jukebox.nbtracks
minetest.register_craftitem("jukebox:disc_" .. id, {
description = "Music Disc : " .. trackdesc,
@ -163,6 +164,8 @@ local function register_disc(trackname, trackdesc, craftitem)
minetest.log("action", "[jukebox] Registrered disc " .. trackdesc ..
", id = " .. id .. " for file " .. trackname)
jukebox.nbtracks = jukebox.nbtracks + 1
end
register_disc("jukebox_event", "Event song", "default:stone")

0
mods/jukebox/sounds/jukebox_song.1.ogg Normal file → Executable file
View File