@@ -185,7 +185,7 @@ minetest.register_chatcommand("/set", {
185
185
186
186
local tenv = minetest .env
187
187
if worldedit .ENABLE_QUEUE then
188
- tenv = worldedit .quene_aliasenv
188
+ tenv = worldedit .queue_aliasenv
189
189
end
190
190
191
191
local count = worldedit .set (pos1 , pos2 , param , tenv )
@@ -220,7 +220,7 @@ minetest.register_chatcommand("/replace", {
220
220
221
221
local tenv = minetest .env
222
222
if worldedit .ENABLE_QUEUE then
223
- tenv = worldedit .quene_aliasenv
223
+ tenv = worldedit .queue_aliasenv
224
224
end
225
225
local count = worldedit .replace (pos1 , pos2 , searchnode , replacenode , tenv )
226
226
worldedit .player_notify (name , count .. " nodes replaced" )
@@ -254,7 +254,7 @@ minetest.register_chatcommand("/replaceinverse", {
254
254
255
255
local tenv = minetest .env
256
256
if worldedit .ENABLE_QUEUE then
257
- tenv = worldedit .quene_aliasenv
257
+ tenv = worldedit .queue_aliasenv
258
258
end
259
259
local count = worldedit .replaceinverse (pos1 , pos2 , searchnode , replacenode , tenv )
260
260
worldedit .player_notify (name , count .. " nodes replaced" )
@@ -284,7 +284,7 @@ minetest.register_chatcommand("/hollowsphere", {
284
284
285
285
local tenv = minetest .env
286
286
if worldedit .ENABLE_QUEUE then
287
- tenv = worldedit .quene_aliasenv
287
+ tenv = worldedit .queue_aliasenv
288
288
end
289
289
local count = worldedit .hollow_sphere (pos , tonumber (radius ), nodename , tenv )
290
290
worldedit .player_notify (name , count .. " nodes added" )
@@ -314,7 +314,7 @@ minetest.register_chatcommand("/sphere", {
314
314
315
315
local tenv = minetest .env
316
316
if worldedit .ENABLE_QUEUE then
317
- tenv = worldedit .quene_aliasenv
317
+ tenv = worldedit .queue_aliasenv
318
318
end
319
319
local count = worldedit .sphere (pos , tonumber (radius ), nodename , tenv )
320
320
worldedit .player_notify (name , count .. " nodes added" )
@@ -344,7 +344,7 @@ minetest.register_chatcommand("/hollowdome", {
344
344
345
345
local tenv = minetest .env
346
346
if worldedit .ENABLE_QUEUE then
347
- tenv = worldedit .quene_aliasenv
347
+ tenv = worldedit .queue_aliasenv
348
348
end
349
349
local count = worldedit .hollow_dome (pos , tonumber (radius ), nodename , tenv )
350
350
worldedit .player_notify (name , count .. " nodes added" )
@@ -374,7 +374,7 @@ minetest.register_chatcommand("/dome", {
374
374
375
375
local tenv = minetest .env
376
376
if worldedit .ENABLE_QUEUE then
377
- tenv = worldedit .quene_aliasenv
377
+ tenv = worldedit .queue_aliasenv
378
378
end
379
379
local count = worldedit .dome (pos , tonumber (radius ), nodename , tenv )
380
380
worldedit .player_notify (name , count .. " nodes added" )
@@ -408,7 +408,7 @@ minetest.register_chatcommand("/hollowcylinder", {
408
408
409
409
local tenv = minetest .env
410
410
if worldedit .ENABLE_QUEUE then
411
- tenv = worldedit .quene_aliasenv
411
+ tenv = worldedit .queue_aliasenv
412
412
end
413
413
local count = worldedit .hollow_cylinder (pos , axis , tonumber (length ), tonumber (radius ), nodename , tenv )
414
414
worldedit .player_notify (name , count .. " nodes added" )
@@ -442,7 +442,7 @@ minetest.register_chatcommand("/cylinder", {
442
442
443
443
local tenv = minetest .env
444
444
if worldedit .ENABLE_QUEUE then
445
- tenv = worldedit .quene_aliasenv
445
+ tenv = worldedit .queue_aliasenv
446
446
end
447
447
local count = worldedit .cylinder (pos , axis , tonumber (length ), tonumber (radius ), nodename , tenv )
448
448
worldedit .player_notify (name , count .. " nodes added" )
@@ -472,7 +472,7 @@ minetest.register_chatcommand("/pyramid", {
472
472
473
473
local tenv = minetest .env
474
474
if worldedit .ENABLE_QUEUE then
475
- tenv = worldedit .quene_aliasenv
475
+ tenv = worldedit .queue_aliasenv
476
476
end
477
477
local count = worldedit .pyramid (pos , tonumber (size ), nodename , tenv )
478
478
worldedit .player_notify (name , count .. " nodes added" )
@@ -502,7 +502,7 @@ minetest.register_chatcommand("/spiral", {
502
502
503
503
local tenv = minetest .env
504
504
if worldedit .ENABLE_QUEUE then
505
- tenv = worldedit .quene_aliasenv
505
+ tenv = worldedit .queue_aliasenv
506
506
end
507
507
local count = worldedit .spiral (pos , tonumber (width ), tonumber (height ), tonumber (space ), nodename , tenv )
508
508
worldedit .player_notify (name , count .. " nodes added" )
@@ -532,7 +532,7 @@ minetest.register_chatcommand("/copy", {
532
532
533
533
local tenv = minetest .env
534
534
if worldedit .ENABLE_QUEUE then
535
- tenv = worldedit .quene_aliasenv
535
+ tenv = worldedit .queue_aliasenv
536
536
end
537
537
local count = worldedit .copy (pos1 , pos2 , axis , tonumber (amount ), tenv )
538
538
worldedit .player_notify (name , count .. " nodes copied" )
@@ -560,8 +560,11 @@ minetest.register_chatcommand("/move", {
560
560
amount = amount * sign
561
561
end
562
562
563
- -- Do NOT use the queue here, it'll mess it up
Has conversations. Original line has conversations. 564
- local count = worldedit .move (pos1 , pos2 , axis , tonumber (amount ))
563
+ local tenv = minetest .env
564
+ if worldedit .ENABLE_QUEUE then
565
+ tenv = worldedit .queue_aliasenv
566
+ end
567
+ local count = worldedit .move (pos1 , pos2 , axis , tonumber (amount ), tenv )
565
568
566
569
pos1 [axis ] = pos1 [axis ] + amount
567
570
pos2 [axis ] = pos2 [axis ] + amount
@@ -594,7 +597,7 @@ minetest.register_chatcommand("/stack", {
594
597
595
598
local tenv = minetest .env
596
599
if worldedit .ENABLE_QUEUE then
597
- tenv = worldedit .quene_aliasenv
600
+ tenv = worldedit .queue_aliasenv
598
601
end
599
602
local count = worldedit .stack (pos1 , pos2 , axis , tonumber (count ), tenv )
600
603
worldedit .player_notify (name , count .. " nodes stacked" )
@@ -630,7 +633,7 @@ minetest.register_chatcommand("/transpose", {
630
633
631
634
local tenv = minetest .env
632
635
if worldedit .ENABLE_QUEUE then
633
- tenv = worldedit .quene_aliasenv
636
+ tenv = worldedit .queue_aliasenv
634
637
end
635
638
local count , pos1 , pos2 = worldedit .transpose (pos1 , pos2 , axis1 , axis2 , tenv )
636
639
@@ -665,7 +668,7 @@ minetest.register_chatcommand("/flip", {
665
668
666
669
local tenv = minetest .env
667
670
if worldedit .ENABLE_QUEUE then
668
- tenv = worldedit .quene_aliasenv
671
+ tenv = worldedit .queue_aliasenv
669
672
end
670
673
local count = worldedit .flip (pos1 , pos2 , param , tenv )
671
674
worldedit .player_notify (name , count .. " nodes flipped" )
@@ -698,7 +701,7 @@ minetest.register_chatcommand("/rotate", {
698
701
699
702
local tenv = minetest .env
700
703
if worldedit .ENABLE_QUEUE then
701
- tenv = worldedit .quene_aliasenv
704
+ tenv = worldedit .queue_aliasenv
702
705
end
703
706
local count , pos1 , pos2 = worldedit .rotate (pos1 , pos2 , axis , angle , tenv )
704
707
@@ -735,7 +738,7 @@ minetest.register_chatcommand("/orient", {
735
738
736
739
local tenv = minetest .env
737
740
if worldedit .ENABLE_QUEUE then
738
- tenv = worldedit .quene_aliasenv
741
+ tenv = worldedit .queue_aliasenv
739
742
end
740
743
local count = worldedit .orient (pos1 , pos2 , angle , tenv )
741
744
@@ -756,7 +759,7 @@ minetest.register_chatcommand("/fixlight", {
756
759
757
760
local tenv = minetest .env
758
761
if worldedit .ENABLE_QUEUE then
759
- tenv = worldedit .quene_aliasenv
762
+ tenv = worldedit .queue_aliasenv
760
763
end
761
764
local count = worldedit .fixlight (pos1 , pos2 , tenv )
762
765
worldedit .player_notify (name , count .. " nodes updated" )
@@ -776,7 +779,7 @@ minetest.register_chatcommand("/hide", {
776
779
777
780
local tenv = minetest .env
778
781
if worldedit .ENABLE_QUEUE then
779
- tenv = worldedit .quene_aliasenv
782
+ tenv = worldedit .queue_aliasenv
780
783
end
781
784
local count = worldedit .hide (pos1 , pos2 , tenv )
782
785
worldedit .player_notify (name , count .. " nodes hidden" )
@@ -801,7 +804,7 @@ minetest.register_chatcommand("/suppress", {
801
804
802
805
local tenv = minetest .env
803
806
if worldedit .ENABLE_QUEUE then
804
- tenv = worldedit .quene_aliasenv
807
+ tenv = worldedit .queue_aliasenv
805
808
end
806
809
local count = worldedit .suppress (pos1 , pos2 , param , tenv )
807
810
worldedit .player_notify (name , count .. " nodes suppressed" )
@@ -826,7 +829,7 @@ minetest.register_chatcommand("/highlight", {
826
829
827
830
local tenv = minetest .env
828
831
if worldedit .ENABLE_QUEUE then
829
- tenv = worldedit .quene_aliasenv
832
+ tenv = worldedit .queue_aliasenv
830
833
end
831
834
local count = worldedit .highlight (pos1 , pos2 , param , tenv )
832
835
worldedit .player_notify (name , count .. " nodes highlighted" )
@@ -846,7 +849,7 @@ minetest.register_chatcommand("/restore", {
846
849
847
850
local tenv = minetest .env
848
851
if worldedit .ENABLE_QUEUE then
849
- tenv = worldedit .quene_aliasenv
852
+ tenv = worldedit .queue_aliasenv
850
853
end
851
854
local count = worldedit .restore (pos1 , pos2 , tenv )
852
855
worldedit .player_notify (name , count .. " nodes restored" )
@@ -970,7 +973,7 @@ minetest.register_chatcommand("/load", {
970
973
971
974
local tenv = minetest .env
972
975
if worldedit .ENABLE_QUEUE then
973
- tenv = worldedit .quene_aliasenv
976
+ tenv = worldedit .queue_aliasenv
974
977
end
975
978
local count = worldedit .deserialize (pos1 , value , tenv )
976
979