master
runs 2020-05-06 00:15:47 +02:00
parent bcab26ac67
commit 6735e359fe
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ petz.on_rightclick = function(self, clicker)
else
show_form = true
end
elseif petz.settings.selling and not(minetest.is_singleplayer()) and self.for_sale and not(self.owner == player_name) then --Buy Form
elseif petz.settings.selling and not(minetest.is_singleplayer()) and self.for_sale and self.owner and not(self.owner == player_name) then --Buy Form
context.buy = true
show_form = true
else --Else open the Form