]> git.lizzy.rs Git - crafter_client.git/commitdiff
Fixed only one person being able to teleport within the same server step
authoroilboi <47129783+oilboi@users.noreply.github.com>
Thu, 28 May 2020 05:51:25 +0000 (01:51 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Thu, 28 May 2020 05:51:25 +0000 (01:51 -0400)
init.lua
player_input.lua

index de7d45282758b699bfb210a16af20160636b5bc9..33dcc3a4750578d6d659903d2453ba4669c68834 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -2,21 +2,19 @@
 weather_intake = nil
 weather = nil
 weather_type = nil
-running_send = nil
 player_movement_state = nil
 nether = nil
 aether = nil
-run = nil
 name = nil
+
 function initialize_all()
        --declare globals for now
        weather_intake = minetest.mod_channel_join("weather_intake")
        weather = minetest.mod_channel_join("weather_nodes")
        weather_type = minetest.mod_channel_join("weather_type")
-       running_send = minetest.mod_channel_join("running_send")
        player_movement_state = minetest.mod_channel_join(name..":player_movement_state")
-       nether = minetest.mod_channel_join("nether_teleporters")
-       aether = minetest.mod_channel_join("aether_teleporters")
+       nether = minetest.mod_channel_join(name..":nether_teleporters")
+       aether = minetest.mod_channel_join(name..":aether_teleporters")
                
        --next we load everything seperately because it's easier to work on individual files than have everything jammed into one file
        --not into seperate mods because that is unnecessary and cumbersome
index 44ea3b2780047ccc6986b77d42b1cc82d78f9e79..7073cb9740cabaaded391e35eab1b143a42228df 100644 (file)
@@ -20,11 +20,11 @@ local send_server_movement_state = function(state)
 end
 
 --receive the server states
-minetest.register_on_modchannel_message(function(channel_name, sender, message)
-       if channel_name == name..":receive_player_movement_state" then
-               running = message
-       end
-end)
+--minetest.register_on_modchannel_message(function(channel_name, sender, message)
+--     if channel_name == name..":receive_player_movement_state" then
+--             running = message
+--     end
+--end)
 
 --check player's input on the "up" key
 minetest.register_globalstep(function(dtime)