Skip to content

Commit

Permalink
memory leak fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FalsePattern committed Jun 5, 2024
1 parent 4c10d6f commit 7874ce9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/main/scala/codechicken/multipart/MultipartHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ object MultipartHelper {
if (!tag.getString("id").equals("savedMultipart"))
return null

MultipartSaveLoad.loadingWorld = world
return TileMultipart.createFromNBT(tag)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import scala.collection.JavaConversions._
*/
object MultipartSaveLoad {
val converters = mutable.MutableList[IPartTileConverter[_]]()
var loadingWorld: World = _

class TileNBTContainer extends TileEntity {
var ticks = 0
Expand Down Expand Up @@ -99,7 +98,6 @@ object MultipartSaveLoad {
}

def loadTiles(chunk: Chunk) {
loadingWorld = chunk.worldObj
val iterator = chunk.chunkTileEntityMap
.asInstanceOf[Map[ChunkPosition, TileEntity]]
.entrySet
Expand Down

0 comments on commit 7874ce9

Please sign in to comment.