mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-21 20:52:21 +00:00
Fix missing super calls and copyFrom methods in tile traits.
This commit is contained in:
1 parent
2c3e183e63
commit
c1e80d631d
2 files changed
+8
No files matched your search
@@ -26,6 +26,7 @@ trait TSlottedTile extends TileMultipart
|
||||
|
||||
override def partRemoved(part:TMultiPart, p:Int)
|
||||
{
|
||||
super.partRemoved(part, p)
|
||||
if(part.isInstanceOf[TSlottedPart])
|
||||
for(i <- 0 until 27)
|
||||
if(partMap(i) == part)
|
||||
|
||||
@@ -8,6 +8,13 @@ import codechicken.lib.vec.BlockCoord
|
||||
trait TTileChangeTile extends TileMultipart {
|
||||
var weakTileChanges = false
|
||||
|
||||
override def copyFrom(that:TileMultipart)
|
||||
{
|
||||
super.copyFrom(that)
|
||||
if(that.isInstanceOf[TTileChangeTile])
|
||||
weakTileChanges = that.asInstanceOf[TTileChangeTile].weakTileChanges
|
||||
}
|
||||
|
||||
override def partAdded(part:TMultiPart)
|
||||
{
|
||||
super.partAdded(part)
|
||||
|
||||
Reference in new issue
Block a user