mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
- Apply upstream patch to fix errors from falling nodes
PR: 252758 Submitted by: scf@FreeBSD.org
This commit is contained in:
parent
43f967d48f
commit
8551251fec
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=561952
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= minetest
|
||||
PORTVERSION= 5.3.0
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= games
|
||||
|
||||
MAINTAINER= amdmi3@FreeBSD.org
|
||||
|
21
games/minetest/files/patch-falling
Normal file
21
games/minetest/files/patch-falling
Normal file
@ -0,0 +1,21 @@
|
||||
commit aba8c3753162320c7cc8a66913ad82f4f1fd0d8b
|
||||
Author: SmallJoker <mk939@ymail.com>
|
||||
Date: Thu Jul 30 19:03:48 2020 +0200
|
||||
|
||||
Falling: Fix error caused by missing param2
|
||||
|
||||
Falling nodes that were spawned prior the recent falling node changes did not require param2.
|
||||
Default to param2 = 0 when none is found in the node data.
|
||||
|
||||
diff --git builtin/game/falling.lua builtin/game/falling.lua
|
||||
index 714506a5f..4bfcca9e7 100644
|
||||
--- builtin/game/falling.lua
|
||||
+++ builtin/game/falling.lua
|
||||
@@ -52,6 +52,7 @@ core.register_entity(":__builtin:falling_node", {
|
||||
floats = false,
|
||||
|
||||
set_node = function(self, node, meta)
|
||||
+ node.param2 = node.param2 or 0
|
||||
self.node = node
|
||||
meta = meta or {}
|
||||
if type(meta.to_table) == "function" then
|
Loading…
Reference in New Issue
Block a user