indentation

This commit is contained in:
Serhii Mozhaiskyi 2020-02-03 20:59:38 +02:00
parent 55f1f5c19a
commit 77e162ad05
3 changed files with 14 additions and 14 deletions

@ -1,12 +1,12 @@
minetest.register_node("ham_radio:beacon", {
description = "Radio Beacon",
tiles = {
"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_beacon_front.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_beacon_front.png"
},
groups = {cracky=2,oddly_breakable_by_hand=2},
sounds = default.node_sound_metal_defaults(),
@ -23,7 +23,7 @@ minetest.register_node("ham_radio:beacon", {
if minetest.is_player(placer) then
local name = placer:get_player_name()
meta:set_string('operated_by', name)
ham_radio.play_tuning_sound(placer)
ham_radio.play_tuning_sound(placer)
end
meta:set_string("frequency", ham_radio.find_free_frequency(ham_radio.settings.beacon_frequency))
ham_radio.transmitter_update_infotext(meta)

@ -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))
-- 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)
end
end

@ -10,12 +10,12 @@ end
minetest.register_node("ham_radio:receiver", {
description = "Ham Radio Receiver",
tiles = {
"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_front.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_front.png"
},
groups = {cracky=2,oddly_breakable_by_hand=2},
sounds = default.node_sound_metal_defaults(),