Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 2021 17:28:06 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r561952 - in head/games/minetest: . files
Message-ID:  <202101181728.10IHS6QJ066060@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Jan 18 17:28:06 2021
New Revision: 561952
URL: https://svnweb.freebsd.org/changeset/ports/561952

Log:
  - Apply upstream patch to fix errors from falling nodes
  
  PR:		252758
  Submitted by:	scf@FreeBSD.org

Added:
  head/games/minetest/files/patch-falling   (contents, props changed)
Modified:
  head/games/minetest/Makefile

Modified: head/games/minetest/Makefile
==============================================================================
--- head/games/minetest/Makefile	Mon Jan 18 17:27:23 2021	(r561951)
+++ head/games/minetest/Makefile	Mon Jan 18 17:28:06 2021	(r561952)
@@ -3,7 +3,7 @@
 
 PORTNAME=	minetest
 PORTVERSION=	5.3.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	games
 
 MAINTAINER=	amdmi3@FreeBSD.org

Added: head/games/minetest/files/patch-falling
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/minetest/files/patch-falling	Mon Jan 18 17:28:06 2021	(r561952)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101181728.10IHS6QJ066060>