Reproducible Crashing Bug with Shop Blocks

    Joined
    Sep 27, 2013
    Messages
    14
    Reaction score
    0
    • Legacy Citizen
    I have discovered that if you place a Shop Block, add a block type to it, and then set the price to 0, any client opening the store crashes immediately with a "divide by zero" Java script error.
     
    Joined
    Sep 27, 2013
    Messages
    14
    Reaction score
    0
    • Legacy Citizen
    I think I know the root cause of this, too:

    When it determines how many items you can afford, it\'s dividing your current credits by the cost of the item. So if the item is 0, it tries to divide by 0, resulting in bad mojo.
     
    Joined
    Jun 21, 2013
    Messages
    92
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    i once made a player shop, and tried to make gray hull worth 0, but everytime you tried to look at the prices you\'d crash.