mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-28 07:56:11 +00:00
Compare commits
2
Commits
worldregistry
...
1.7.17
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
290dc4a815 | ||
|
|
9eb69cdc13 |
No files matched your search
@@ -199,7 +199,7 @@ object MicroRecipe extends IRecipe {
|
|||||||
def findMaterial(item: ItemStack): Int =
|
def findMaterial(item: ItemStack): Int =
|
||||||
MicroMaterialRegistry.getIdMap.find { m =>
|
MicroMaterialRegistry.getIdMap.find { m =>
|
||||||
val mitem = m._2.getItem
|
val mitem = m._2.getItem
|
||||||
item.getItem == mitem.getItem &&
|
m._2 != MissingMicroMaterial && item.getItem == mitem.getItem &&
|
||||||
item.getItemDamage == mitem.getItemDamage &&
|
item.getItemDamage == mitem.getItemDamage &&
|
||||||
ItemStack.areItemStackTagsEqual(item, mitem)
|
ItemStack.areItemStackTagsEqual(item, mitem)
|
||||||
} match {
|
} match {
|
||||||
|
|||||||
@@ -81,12 +81,14 @@ object MultipartGenerator extends ScratchBitSet {
|
|||||||
pos: BlockCoord,
|
pos: BlockCoord,
|
||||||
part: TMultiPart
|
part: TMultiPart
|
||||||
): TileMultipart = {
|
): TileMultipart = {
|
||||||
val (tile, converted) = TileMultipart.getOrConvertTile2(world, pos)
|
val (tile, converted) =
|
||||||
|
if (world.isRemote) (TileMultipart.getTile(world, pos), false)
|
||||||
|
else TileMultipart.getOrConvertTile2(world, pos)
|
||||||
val bitset = setTraits(part, world.isRemote)
|
val bitset = setTraits(part, world.isRemote)
|
||||||
|
|
||||||
var ntile = tile
|
var ntile = tile
|
||||||
if (ntile != null) {
|
if (ntile != null) {
|
||||||
if (converted) { // perform client conversion
|
if (converted) { // server-side conversion, then tell the clients
|
||||||
ntile.partList(0).invalidateConvertedTile()
|
ntile.partList(0).invalidateConvertedTile()
|
||||||
world.setBlock(pos.x, pos.y, pos.z, MultipartProxy.block, 0, 0)
|
world.setBlock(pos.x, pos.y, pos.z, MultipartProxy.block, 0, 0)
|
||||||
silentAddTile(world, pos, ntile)
|
silentAddTile(world, pos, ntile)
|
||||||
|
|||||||
Reference in new issue
Block a user