]> git.lizzy.rs Git - worldedit.git/commitdiff
Fix formspec typo causing crashing upon using `/orient` in the GUI.
authorAnthony Zhang <azhang9@gmail.com>
Thu, 18 Jun 2015 22:14:45 +0000 (18:14 -0400)
committerAnthony Zhang <azhang9@gmail.com>
Thu, 18 Jun 2015 22:14:45 +0000 (18:14 -0400)
worldedit_gui/functionality.lua

index 620f6c4a9643541d2fed21f462592e4dd5510299..989c9eb2b11642f9944e7d9acd33ceca9ae39cf9 100644 (file)
@@ -488,7 +488,7 @@ worldedit.register_gui_function("worldedit_gui_orient", {
        get_formspec = function(name)\r
                local angle = gui_angle[name]\r
                return "size[5,3]" .. worldedit.get_formspec_header("worldedit_gui_orient") ..\r
-                       string.format("dropdown[0,1;2.5;worldedit_gui_rotate_angle;90 degrees,180 degrees,270 degrees;%s]", angle) ..\r
+                       string.format("dropdown[0,1;2.5;worldedit_gui_orient_angle;90 degrees,180 degrees,270 degrees;%s]", angle) ..\r
                        "button_exit[0,2.5;3,0.8;worldedit_gui_orient_submit;Orient]"\r
        end,\r
 })\r