@@ -256,7 +256,7 @@ local preference_functions = {
256
256
-- ---------------- LIKECREATURE ---------------- --
257
257
LIKECREATURE = function (token )
258
258
local creature_id
259
- local parts = utils . split_string ( token , " :" )
259
+ local parts = token : split ( " :" )
260
260
if # parts == 1 then
261
261
creature_id = parts [1 ]
262
262
else
@@ -368,7 +368,7 @@ local preference_functions = {
368
368
-- ---------------- HATECREATURE ---------------- --
369
369
HATECREATURE = function (token )
370
370
local creature_id
371
- local parts = utils . split_string ( token , " :" )
371
+ local parts = token : split ( " :" )
372
372
if # parts == 1 then
373
373
creature_id = parts [1 ]
374
374
else
@@ -402,7 +402,7 @@ local preference_functions = {
402
402
LIKEITEM = function (token )
403
403
local item_type
404
404
local item_subtype = - 1
405
- local parts = utils . split_string ( token , " :" )
405
+ local parts = token : split ( " :" )
406
406
if # parts == 1 then
407
407
item_type = df .item_type [parts [1 ]]
408
408
else
@@ -444,7 +444,7 @@ local preference_functions = {
444
444
-- ---------------- LIKEPLANT ---------------- --
445
445
LIKEPLANT = function (token )
446
446
local plant_id
447
- local parts = utils . split_string ( token , " :" )
447
+ local parts = token : split ( " :" )
448
448
if # parts == 1 then
449
449
plant_id = parts [1 ]
450
450
else
@@ -477,7 +477,7 @@ local preference_functions = {
477
477
-- ---------------- LIKETREE ---------------- --
478
478
LIKETREE = function (token )
479
479
local plant_id
480
- local parts = utils . split_string ( token , " :" )
480
+ local parts = token : split ( " :" )
481
481
if # parts == 1 then
482
482
plant_id = parts [1 ]
483
483
else
@@ -510,7 +510,7 @@ local preference_functions = {
510
510
-- ---------------- LIKECOLOR ---------------- --
511
511
LIKECOLOR = function (token )
512
512
local color_name
513
- local parts = utils . split_string ( token , " :" )
513
+ local parts = token : split ( " :" )
514
514
if # parts == 1 then
515
515
color_name = parts [1 ]
516
516
else
@@ -544,7 +544,7 @@ local preference_functions = {
544
544
-- ---------------- LIKESHAPE ---------------- --
545
545
LIKESHAPE = function (token )
546
546
local shape_name
547
- local parts = utils . split_string ( token , " :" )
547
+ local parts = token : split ( " :" )
548
548
if # parts == 1 then
549
549
shape_name = parts [1 ]
550
550
else
0 commit comments