Update forge, mappings and changelog
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
# Refined Storage Changelog
|
||||
|
||||
### 1.8.2
|
||||
- Add Refined Storage silicon to forge:silicon tag for mod compatibility (jeremiahwinsley)
|
||||
- Update pt_br translation (Arthur-o-b)
|
||||
- Added waterlogging to all cable blocks (Darkere)
|
||||
- Fixed storage block dropping extra processor (Darkere)
|
||||
- Create zh_tw translation (ForFunPenguin)
|
||||
- Re-added zh_cn translation (ppoozl)
|
||||
|
||||
### 1.8.1
|
||||
- Port to Minecraft 1.15.2 (raoulvdberge)
|
||||
- The Storage Monitor supports fluids as well now (V1RTUOZ)
|
||||
|
@@ -33,7 +33,7 @@ archivesBaseName = 'refinedstorage'
|
||||
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
|
||||
|
||||
minecraft {
|
||||
mappings channel: 'snapshot', version: '20200124-1.15.1'
|
||||
mappings channel: 'snapshot', version: '20200225-1.15.1'
|
||||
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
||||
|
||||
runs {
|
||||
@@ -94,7 +94,7 @@ processResources {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
minecraft 'net.minecraftforge:forge:1.15.2-31.0.14'
|
||||
minecraft 'net.minecraftforge:forge:1.15.2-31.1.39'
|
||||
|
||||
compileOnly fg.deobf("mezz.jei:jei-1.15.2:6.0.0.2:api")
|
||||
runtimeOnly fg.deobf("mezz.jei:jei-1.15.2:6.0.0.2")
|
||||
|
@@ -47,7 +47,7 @@ public abstract class NetworkItem extends EnergyItem implements INetworkItemProv
|
||||
applyNetwork(world.getServer(), stack, n -> n.getNetworkItemManager().open(player, player.getHeldItem(hand), player.inventory.currentItem), player::sendMessage);
|
||||
}
|
||||
|
||||
return ActionResult.func_226248_a_(stack);
|
||||
return ActionResult.resultSuccess(stack);
|
||||
}
|
||||
|
||||
public void applyNetwork(MinecraftServer server, ItemStack stack, Consumer<INetwork> onNetwork, Consumer<ITextComponent> onError) {
|
||||
|
@@ -9,7 +9,6 @@ import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.CompoundNBT;
|
||||
import net.minecraft.util.ActionResult;
|
||||
import net.minecraft.util.ActionResultType;
|
||||
import net.minecraft.util.Hand;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.text.ITextComponent;
|
||||
@@ -45,7 +44,7 @@ public class SecurityCardItem extends Item {
|
||||
stack.getTag().putString(NBT_OWNER_NAME, player.getGameProfile().getName());
|
||||
}
|
||||
|
||||
return ActionResult.func_226248_a_(stack);
|
||||
return ActionResult.resultSuccess(stack);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
@@ -54,7 +54,7 @@ public class PortableGridBlockItem extends EnergyBlockItem {
|
||||
API.instance().getGridManager().openGrid(PortableGridGridFactory.ID, (ServerPlayerEntity) player, stack, player.inventory.currentItem);
|
||||
}
|
||||
|
||||
return ActionResult.func_226248_a_(stack);
|
||||
return ActionResult.resultSuccess(stack);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -103,7 +103,7 @@ public class FluidRenderer {
|
||||
Fluid fluid = fluidStack.getFluid();
|
||||
FluidAttributes attributes = fluid.getAttributes();
|
||||
ResourceLocation fluidStill = attributes.getStillTexture(fluidStack);
|
||||
return Minecraft.getInstance().getTextureGetter(PlayerContainer.LOCATION_BLOCKS_TEXTURE).apply(fluidStill);
|
||||
return Minecraft.getInstance().getAtlasSpriteGetter(PlayerContainer.LOCATION_BLOCKS_TEXTURE).apply(fluidStill);
|
||||
}
|
||||
|
||||
private static void setGLColorFromInt(int color) {
|
||||
|
@@ -87,7 +87,7 @@ public class StorageMonitorTileRenderer extends TileEntityRenderer<StorageMonito
|
||||
0,
|
||||
-1,
|
||||
false,
|
||||
matrixStack.getLast().getPositionMatrix(),
|
||||
matrixStack.getLast().getMatrix(),
|
||||
renderTypeBuffer,
|
||||
false,
|
||||
0,
|
||||
@@ -107,12 +107,12 @@ public class StorageMonitorTileRenderer extends TileEntityRenderer<StorageMonito
|
||||
matrixStack.scale(0.5F, 0.5F, 0.5F);
|
||||
|
||||
Minecraft.getInstance().getItemRenderer().renderItem(
|
||||
itemStack,
|
||||
ItemCameraTransforms.TransformType.FIXED,
|
||||
light,
|
||||
OverlayTexture.DEFAULT_LIGHT,
|
||||
matrixStack,
|
||||
renderTypeBuffer
|
||||
itemStack,
|
||||
ItemCameraTransforms.TransformType.FIXED,
|
||||
light,
|
||||
OverlayTexture.NO_OVERLAY,
|
||||
matrixStack,
|
||||
renderTypeBuffer
|
||||
);
|
||||
|
||||
matrixStack.pop();
|
||||
@@ -130,32 +130,32 @@ public class StorageMonitorTileRenderer extends TileEntityRenderer<StorageMonito
|
||||
final Fluid fluid = fluidStack.getFluid();
|
||||
final FluidAttributes attributes = fluid.getAttributes();
|
||||
final ResourceLocation fluidStill = attributes.getStillTexture(fluidStack);
|
||||
final TextureAtlasSprite sprite = Minecraft.getInstance().getTextureGetter(PlayerContainer.LOCATION_BLOCKS_TEXTURE).apply(fluidStill);
|
||||
final TextureAtlasSprite sprite = Minecraft.getInstance().getAtlasSpriteGetter(PlayerContainer.LOCATION_BLOCKS_TEXTURE).apply(fluidStill);
|
||||
final int fluidColor = attributes.getColor(fluidStack);
|
||||
|
||||
final IVertexBuilder buffer = renderTypeBuffer.getBuffer(RenderType.text(sprite.getAtlasTexture().getBasePath()));
|
||||
final IVertexBuilder buffer = renderTypeBuffer.getBuffer(RenderType.getText(sprite.getAtlasTexture().getTextureLocation()));
|
||||
|
||||
final int colorRed = fluidColor >> 16 & 0xFF;
|
||||
final int colorGreen = fluidColor >> 8 & 0xFF;
|
||||
final int colorBlue = fluidColor & 0xFF;
|
||||
final int colorAlpha = fluidColor >> 24 & 0xFF;
|
||||
|
||||
buffer.pos(matrixStack.getLast().getPositionMatrix(), -0.5F, -0.5F, 0F)
|
||||
buffer.pos(matrixStack.getLast().getMatrix(), -0.5F, -0.5F, 0F)
|
||||
.color(colorRed, colorGreen, colorBlue, colorAlpha)
|
||||
.tex(sprite.getMinU(), sprite.getMinV())
|
||||
.lightmap(light)
|
||||
.endVertex();
|
||||
buffer.pos(matrixStack.getLast().getPositionMatrix(), 0.5F, -0.5F, 0F)
|
||||
buffer.pos(matrixStack.getLast().getMatrix(), 0.5F, -0.5F, 0F)
|
||||
.color(colorRed, colorGreen, colorBlue, colorAlpha)
|
||||
.tex(sprite.getMaxU(), sprite.getMinV())
|
||||
.lightmap(light)
|
||||
.endVertex();
|
||||
buffer.pos(matrixStack.getLast().getPositionMatrix(), 0.5F, -1.5F, 0F)
|
||||
buffer.pos(matrixStack.getLast().getMatrix(), 0.5F, -1.5F, 0F)
|
||||
.color(colorRed, colorGreen, colorBlue, colorAlpha)
|
||||
.tex(sprite.getMaxU(), sprite.getMaxV())
|
||||
.lightmap(light)
|
||||
.endVertex();
|
||||
buffer.pos(matrixStack.getLast().getPositionMatrix(), -0.5F, -1.5F, 0F)
|
||||
buffer.pos(matrixStack.getLast().getMatrix(), -0.5F, -1.5F, 0F)
|
||||
.color(colorRed, colorGreen, colorBlue, colorAlpha)
|
||||
.tex(sprite.getMinU(), sprite.getMaxV())
|
||||
.lightmap(light)
|
||||
|
@@ -216,28 +216,28 @@ public class ClientSetup {
|
||||
ClientRegistry.registerKeyBinding(RSKeyBindings.OPEN_WIRELESS_CRAFTING_MONITOR);
|
||||
ClientRegistry.registerKeyBinding(RSKeyBindings.OPEN_PORTABLE_GRID);
|
||||
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CONTROLLER, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CREATIVE_CONTROLLER, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CABLE, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CRAFTER, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CRAFTER_MANAGER, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CRAFTING_MONITOR, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.DETECTOR, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.DISK_MANIPULATOR, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.GRID, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CRAFTING_GRID, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.PATTERN_GRID, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.FLUID_GRID, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.NETWORK_RECEIVER, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.NETWORK_TRANSMITTER, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.RELAY, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.SECURITY_MANAGER, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.WIRELESS_TRANSMITTER, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.IMPORTER, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.EXPORTER, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.EXTERNAL_STORAGE, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CONSTRUCTOR, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.DESTRUCTOR, RenderType.cutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CONTROLLER, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CREATIVE_CONTROLLER, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CABLE, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CRAFTER, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CRAFTER_MANAGER, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CRAFTING_MONITOR, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.DETECTOR, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.DISK_MANIPULATOR, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.GRID, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CRAFTING_GRID, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.PATTERN_GRID, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.FLUID_GRID, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.NETWORK_RECEIVER, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.NETWORK_TRANSMITTER, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.RELAY, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.SECURITY_MANAGER, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.WIRELESS_TRANSMITTER, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.IMPORTER, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.EXPORTER, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.EXTERNAL_STORAGE, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.CONSTRUCTOR, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(RSBlocks.DESTRUCTOR, RenderType.getCutout());
|
||||
|
||||
ClientRegistry.bindTileEntityRenderer(RSTiles.STORAGE_MONITOR, StorageMonitorTileRenderer::new);
|
||||
|
||||
|
@@ -230,7 +230,7 @@ public final class RenderUtils {
|
||||
IRenderTypeBuffer.Impl renderType = IRenderTypeBuffer.getImpl(Tessellator.getInstance().getBuffer());
|
||||
MatrixStack textStack = new MatrixStack();
|
||||
textStack.translate(0.0D, 0.0D, (double) zLevel);
|
||||
Matrix4f textLocation = textStack.getLast().getPositionMatrix();
|
||||
Matrix4f textLocation = textStack.getLast().getMatrix();
|
||||
|
||||
int tooltipTop = tooltipY;
|
||||
|
||||
@@ -270,7 +270,7 @@ public final class RenderUtils {
|
||||
RenderUtils.getOffsetOnScale(y - (Minecraft.getInstance().getForceUnicodeFont() ? 2 : 0), textScale),
|
||||
-1,
|
||||
true,
|
||||
smallTextStack.getLast().getPositionMatrix(),
|
||||
smallTextStack.getLast().getMatrix(),
|
||||
lvt_7_1_,
|
||||
false,
|
||||
0,
|
||||
|
Reference in New Issue
Block a user