mirror of
https://github.com/technix/ham_radio.git
synced 2024-07-07 08:15:19 +02:00
indentation
This commit is contained in:
parent
55f1f5c19a
commit
77e162ad05
14
beacon.lua
14
beacon.lua
@ -1,12 +1,12 @@
|
|||||||
minetest.register_node("ham_radio:beacon", {
|
minetest.register_node("ham_radio:beacon", {
|
||||||
description = "Radio Beacon",
|
description = "Radio Beacon",
|
||||||
tiles = {
|
tiles = {
|
||||||
"ham_radio_transmitter_top.png",
|
"ham_radio_transmitter_top.png",
|
||||||
"ham_radio_transmitter_top.png",
|
"ham_radio_transmitter_top.png",
|
||||||
"ham_radio_transmitter_side.png",
|
"ham_radio_transmitter_side.png",
|
||||||
"ham_radio_transmitter_side.png",
|
"ham_radio_transmitter_side.png",
|
||||||
"ham_radio_transmitter_side.png",
|
"ham_radio_transmitter_side.png",
|
||||||
"ham_radio_beacon_front.png"
|
"ham_radio_beacon_front.png"
|
||||||
},
|
},
|
||||||
groups = {cracky=2,oddly_breakable_by_hand=2},
|
groups = {cracky=2,oddly_breakable_by_hand=2},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
sounds = default.node_sound_metal_defaults(),
|
||||||
@ -23,7 +23,7 @@ minetest.register_node("ham_radio:beacon", {
|
|||||||
if minetest.is_player(placer) then
|
if minetest.is_player(placer) then
|
||||||
local name = placer:get_player_name()
|
local name = placer:get_player_name()
|
||||||
meta:set_string('operated_by', name)
|
meta:set_string('operated_by', name)
|
||||||
ham_radio.play_tuning_sound(placer)
|
ham_radio.play_tuning_sound(placer)
|
||||||
end
|
end
|
||||||
meta:set_string("frequency", ham_radio.find_free_frequency(ham_radio.settings.beacon_frequency))
|
meta:set_string("frequency", ham_radio.find_free_frequency(ham_radio.settings.beacon_frequency))
|
||||||
ham_radio.transmitter_update_infotext(meta)
|
ham_radio.transmitter_update_infotext(meta)
|
||||||
|
2
rds.lua
2
rds.lua
@ -58,7 +58,7 @@ function ham_radio:update_rds(player)
|
|||||||
minetest.chat_send_player(player:get_player_name(), minetest.colorize(ham_radio.settings.rds_color, message))
|
minetest.chat_send_player(player:get_player_name(), minetest.colorize(ham_radio.settings.rds_color, message))
|
||||||
|
|
||||||
-- when all RDS messages are shown, reload them again
|
-- when all RDS messages are shown, reload them again
|
||||||
if not next(ham_radio.player_rds[name]) then
|
if not next(ham_radio.player_rds[name]) then
|
||||||
ham_radio.player_rds[name] = ham_radio.get_rds_messages(frequency)
|
ham_radio.player_rds[name] = ham_radio.get_rds_messages(frequency)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -10,12 +10,12 @@ end
|
|||||||
minetest.register_node("ham_radio:receiver", {
|
minetest.register_node("ham_radio:receiver", {
|
||||||
description = "Ham Radio Receiver",
|
description = "Ham Radio Receiver",
|
||||||
tiles = {
|
tiles = {
|
||||||
"ham_radio_receiver_top.png",
|
"ham_radio_receiver_top.png",
|
||||||
"ham_radio_receiver_top.png",
|
"ham_radio_receiver_top.png",
|
||||||
"ham_radio_receiver_side.png",
|
"ham_radio_receiver_side.png",
|
||||||
"ham_radio_receiver_side.png",
|
"ham_radio_receiver_side.png",
|
||||||
"ham_radio_receiver_side.png",
|
"ham_radio_receiver_side.png",
|
||||||
"ham_radio_receiver_front.png"
|
"ham_radio_receiver_front.png"
|
||||||
},
|
},
|
||||||
groups = {cracky=2,oddly_breakable_by_hand=2},
|
groups = {cracky=2,oddly_breakable_by_hand=2},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
sounds = default.node_sound_metal_defaults(),
|
||||||
|
Loading…
Reference in New Issue
Block a user