Skip to content

Commit

Permalink
Change particle Y position
Browse files Browse the repository at this point in the history
  • Loading branch information
Panquesito7 committed Dec 20, 2023
1 parent 136c8f5 commit 7fd819c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ local function player_slide(player, dtime)
end

if vel.y < 0 then
local node_pos, node_dir, name = is_player_on_block(player, true, 1.9)
local node_pos, node_dir, name = is_player_on_block(player, true, 1.7)
local def = minetest.registered_nodes[name]

if node and node_def and node.name == "air" or node_def.drawtype == "plantlike" then
Expand Down Expand Up @@ -385,8 +385,8 @@ local function player_slide(player, dtime)
local particle_def = {
amount = 1,
time = 0.1,
minpos = vector.new(node_pos.x, player:get_pos().y + 1.9, node_pos.z),
maxpos = vector.new(node_pos.x, player:get_pos().y + 1.9, node_pos.z),
minpos = vector.new(node_pos.x, player:get_pos().y + 1.7, node_pos.z),
maxpos = vector.new(node_pos.x, player:get_pos().y + 1.7, node_pos.z),
minvel = vector.new(0.1, 0.1, 0.1),
maxvel = vector.new(0.1, 0.1, 0.1),
minacc = vector.new(),
Expand Down

0 comments on commit 7fd819c

Please sign in to comment.