Skip to content

Cells are created twice in database #74

@hitechwizard

Description

@hitechwizard

When using /jail createcell to create multiple cells, they are inserted into the database twice:

mysql> select * from j3_cells where jail = 'supermax';
+--------+----------+----------+------------------+------+------------------+-----------------+-------------------+---------+---------+---------+-------------------------------------------------------------------+
| cellid | name     | jail     | tp.x             | tp.y | tp.z             | tp.yaw          | tp.pitch          | chest.x | chest.y | chest.z | signs                                                             |
+--------+----------+----------+------------------+------+------------------+-----------------+-------------------+---------+---------+---------+-------------------------------------------------------------------+
|     69 | cell_a1  | supermax | 1551.36580887083 |   77 | 584.011457580249 |   182.681640625 | -15.9000177383423 |    1552 |      79 |     582 | boldog,1551.0,79.0,582.0,0.0,0.0;boldog,1551.0,79.0,580.0,0.0,0.0 |
|     70 | cell_a2  | supermax | 1557.65674555011 |   77 | 584.072034267519 | 194.68505859375 | 0.150004044175148 |    1558 |      79 |     582 | boldog,1557.0,79.0,582.0,0.0,0.0;boldog,1557.0,79.0,580.0,0.0,0.0 |
|     71 | cell_a3  | supermax | 1563.71715635434 |   77 | 584.698947820565 |  190.0361328125 |  0.29998779296875 |    1564 |      79 |     582 | boldog,1563.0,79.0,580.0,0.0,0.0;boldog,1563.0,79.0,582.0,0.0,0.0 |
|     72 | cell_a4  | supermax |  1569.3290016575 |   77 | 584.580093547504 |   174.283203125 |   2.3999707698822 |    1570 |      79 |     582 | boldog,1569.0,79.0,582.0,0.0,0.0;boldog,1569.0,79.0,580.0,0.0,0.0 |
|     73 | cell_a5  | supermax |   1575.465732461 |   77 | 584.699999988079 |    198.89453125 |   4.9499716758728 |    1576 |      79 |     582 | boldog,1575.0,79.0,580.0,0.0,0.0;boldog,1575.0,79.0,582.0,0.0,0.0 |
|     74 | cell_a6  | supermax | 1575.21143844207 |   77 | 571.300000011921 |   5.54248046875 |  2.99999475479126 |    1574 |      79 |     573 | boldog,1575.0,79.0,573.0,0.0,0.0;boldog,1575.0,79.0,575.0,0.0,0.0 |
|     75 | cell_a7  | supermax | 1569.42389137401 |   77 | 571.300000011921 |    10.505859375 |  3.60001301765442 |    1568 |      79 |     573 | boldog,1569.0,79.0,573.0,0.0,0.0;boldog,1569.0,79.0,575.0,0.0,0.0 |
|     76 | cell_a8  | supermax | 1563.33333602707 |   77 | 571.300000011921 |  13.05712890625 |  6.60002613067627 |    1562 |      79 |     573 | boldog,1563.0,79.0,573.0,0.0,0.0;boldog,1563.0,79.0,575.0,0.0,0.0 |
|     77 | cell_a9  | supermax | 1557.56209224148 |   77 | 571.516709585068 | 355.65673828125 | -13.1999635696411 |    1556 |      79 |     573 | boldog,1557.0,79.0,573.0,0.0,0.0;boldog,1557.0,79.0,575.0,0.0,0.0 |
|     78 | cell_a10 | supermax |  1551.7168077068 |   77 | 571.665065153988 |   0.00341796875 | -18.7499504089355 |    1550 |      79 |     573 | boldog,1551.0,79.0,575.0,0.0,0.0;boldog,1551.0,79.0,573.0,0.0,0.0 |
|     81 | cell_a10 | supermax |  1551.7168077068 |   77 | 571.665065153988 |   0.00341796875 | -18.7499504089355 |    1550 |      79 |     573 | boldog,1551.0,79.0,575.0,0.0,0.0;boldog,1551.0,79.0,573.0,0.0,0.0 |
|     82 | cell_a3  | supermax | 1563.71715635434 |   77 | 584.698947820565 |  190.0361328125 |  0.29998779296875 |    1564 |      79 |     582 | boldog,1563.0,79.0,580.0,0.0,0.0;boldog,1563.0,79.0,582.0,0.0,0.0 |
|     83 | cell_a2  | supermax | 1557.65674555011 |   77 | 584.072034267519 | 194.68505859375 | 0.150004044175148 |    1558 |      79 |     582 | boldog,1557.0,79.0,582.0,0.0,0.0;boldog,1557.0,79.0,580.0,0.0,0.0 |
|     84 | cell_a9  | supermax | 1557.56209224148 |   77 | 571.516709585068 | 355.65673828125 | -13.1999635696411 |    1556 |      79 |     573 | boldog,1557.0,79.0,573.0,0.0,0.0;boldog,1557.0,79.0,575.0,0.0,0.0 |
|     85 | cell_a1  | supermax | 1551.36580887083 |   77 | 584.011457580249 |   182.681640625 | -15.9000177383423 |    1552 |      79 |     582 | boldog,1551.0,79.0,582.0,0.0,0.0;boldog,1551.0,79.0,580.0,0.0,0.0 |
|     86 | cell_a4  | supermax |  1569.3290016575 |   77 | 584.580093547504 |   174.283203125 |   2.3999707698822 |    1570 |      79 |     582 | boldog,1569.0,79.0,582.0,0.0,0.0;boldog,1569.0,79.0,580.0,0.0,0.0 |
|     87 | cell_a5  | supermax |   1575.465732461 |   77 | 584.699999988079 |    198.89453125 |   4.9499716758728 |    1576 |      79 |     582 | boldog,1575.0,79.0,580.0,0.0,0.0;boldog,1575.0,79.0,582.0,0.0,0.0 |
|     88 | cell_a7  | supermax | 1569.42389137401 |   77 | 571.300000011921 |    10.505859375 |  3.60001301765442 |    1568 |      79 |     573 | boldog,1569.0,79.0,573.0,0.0,0.0;boldog,1569.0,79.0,575.0,0.0,0.0 |
|     89 | cell_a8  | supermax | 1563.33333602707 |   77 | 571.300000011921 |  13.05712890625 |  6.60002613067627 |    1562 |      79 |     573 | boldog,1563.0,79.0,573.0,0.0,0.0;boldog,1563.0,79.0,575.0,0.0,0.0 |
|     90 | cell_a6  | supermax | 1575.21143844207 |   77 | 571.300000011921 |   5.54248046875 |  2.99999475479126 |    1574 |      79 |     573 | boldog,1575.0,79.0,573.0,0.0,0.0;boldog,1575.0,79.0,575.0,0.0,0.0 |
+--------+----------+----------+------------------+------+------------------+-----------------+-------------------+---------+---------+---------+-------------------------------------------------------------------+
20 rows in set (0.00 sec)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions