mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-12 16:37:38 +00:00
Fix IFluidHandlerTile mixin for wrong interface
This commit is contained in:
1 parent
9cab6cf6f7
commit
7a91c07889
2 files changed
+4
-4
No files matched your search
@@ -36,7 +36,7 @@ class MultipartProxy_serverImpl
|
||||
.setComment("Multipart API config file")
|
||||
|
||||
MultipartGenerator.registerTrait("codechicken.multipart.TSlottedPart", "codechicken.multipart.scalatraits.TSlottedTile")
|
||||
MultipartGenerator.registerTrait("net.minecraftforge.liquids.ITankContainer", "codechicken.multipart.scalatraits.TTankContainerTile")
|
||||
MultipartGenerator.registerTrait("net.minecraftforge.fluids.IFluidHandler", "codechicken.multipart.scalatraits.TFluidHandlerTile")
|
||||
MultipartGenerator.registerTrait("codechicken.multipart.JPartialOcclusion", "codechicken.multipart.scalatraits.TPartialOcclusionTile")
|
||||
MultipartGenerator.registerTrait("codechicken.multipart.IRedstonePart", "codechicken.multipart.scalatraits.TRedstoneTile")
|
||||
MultipartGenerator.registerTrait("codechicken.multipart.IRandomDisplayTick", "codechicken.multipart.scalatraits.TRandomDisplayTickTile", null)
|
||||
|
||||
+3
-3
@@ -10,15 +10,15 @@ import net.minecraftforge.fluids.IFluidTank
|
||||
import net.minecraftforge.fluids.FluidTankInfo
|
||||
import net.minecraftforge.fluids.Fluid
|
||||
|
||||
trait TTankContainerTile extends TileMultipart with IFluidHandler
|
||||
trait TFluidHandlerTile extends TileMultipart with IFluidHandler
|
||||
{
|
||||
var tankList = ListBuffer[IFluidHandler]()
|
||||
|
||||
override def copyFrom(that:TileMultipart)
|
||||
{
|
||||
super.copyFrom(that)
|
||||
if(that.isInstanceOf[TTankContainerTile])
|
||||
tankList = that.asInstanceOf[TTankContainerTile].tankList
|
||||
if(that.isInstanceOf[TFluidHandlerTile])
|
||||
tankList = that.asInstanceOf[TFluidHandlerTile].tankList
|
||||
}
|
||||
|
||||
override def partAdded(part:TMultiPart)
|
||||
Reference in new issue
Block a user