Compare commits

..
2 Commits
Author SHA1 Message Date
Maya ef67761bc3 update 2025-06-03 12:52:42 -06:00
Alexdoru d50ec43d76 Fix WorldClient leak (#28) 2025-06-03 12:52:09 -06:00
9 changed files with 9 additions and 14 deletions

No files matched your search

+1
View File
@@ -27,3 +27,4 @@ whitelist.json
*.iws *.iws
src/main/resources/mixins.*.json src/main/resources/mixins.*.json
*.bat *.bat
layout.json
+2 -2
View File
@@ -1,7 +1,7 @@
// Add your dependencies here // Add your dependencies here
dependencies { dependencies {
compileOnly("com.github.GTNewHorizons:Angelica:1.0.0-beta43:dev") compileOnly("com.github.GTNewHorizons:Angelica:1.0.0-beta45:dev")
devOnlyNonPublishable("com.github.GTNewHorizons:NotEnoughItems:2.7.18-GTNH:dev") devOnlyNonPublishable("com.github.GTNewHorizons:NotEnoughItems:2.7.51-GTNH:dev")
} }
+1 -1
View File
@@ -14,7 +14,7 @@ modId = ForgeMultipart
modGroup = codechicken modGroup = codechicken
# Whether to use modGroup as the maven publishing group. # Whether to use modGroup as the maven publishing group.
# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods. # When false, com.github.GTNewHorizons is used.
useModGroupForPublishing = false useModGroupForPublishing = false
# Updates your build.gradle and settings.gradle automatically whenever an update is available. # Updates your build.gradle and settings.gradle automatically whenever an update is available.
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
Vendored
+2 -3
View File
@@ -86,8 +86,7 @@ done
# shellcheck disable=SC2034 # shellcheck disable=SC2034
APP_BASE_NAME=${0##*/} APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value. # Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum MAX_FD=maximum
@@ -206,7 +205,7 @@ fi
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command: # Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, # * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped. # and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line. # treated as '${Hostname}' itself on the command line.
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
} }
plugins { plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.31' id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.38'
} }
@@ -41,7 +41,6 @@ object MultipartHelper {
if (!tag.getString("id").equals("savedMultipart")) if (!tag.getString("id").equals("savedMultipart"))
return null return null
MultipartSaveLoad.loadingWorld = world
return TileMultipart.createFromNBT(tag) return TileMultipart.createFromNBT(tag)
} }
@@ -7,16 +7,13 @@ import net.minecraft.world.chunk.Chunk
import net.minecraft.world.ChunkPosition import net.minecraft.world.ChunkPosition
import codechicken.multipart.{MultipartHelper, TileMultipart} import codechicken.multipart.{MultipartHelper, TileMultipart}
import codechicken.lib.asm.ObfMapping import codechicken.lib.asm.ObfMapping
import net.minecraft.world.World
import scala.collection.mutable import scala.collection.mutable
import codechicken.multipart.MultipartHelper.IPartTileConverter import codechicken.multipart.MultipartHelper.IPartTileConverter
import scala.collection.JavaConversions._ import scala.collection.JavaConversions._
/** Hack due to lack of TileEntityLoadEvent in forge /** Hack due to lack of TileEntityLoadEvent in forge */
*/
object MultipartSaveLoad { object MultipartSaveLoad {
val converters = mutable.MutableList[IPartTileConverter[_]]() val converters = mutable.MutableList[IPartTileConverter[_]]()
var loadingWorld: World = _
class TileNBTContainer extends TileEntity { class TileNBTContainer extends TileEntity {
var tag: NBTTagCompound = _ var tag: NBTTagCompound = _
@@ -59,7 +56,6 @@ object MultipartSaveLoad {
} }
def loadTiles(chunk: Chunk) { def loadTiles(chunk: Chunk) {
loadingWorld = chunk.worldObj
val iterator = chunk.chunkTileEntityMap val iterator = chunk.chunkTileEntityMap
.asInstanceOf[Map[ChunkPosition, TileEntity]] .asInstanceOf[Map[ChunkPosition, TileEntity]]
.entrySet .entrySet