1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-25 22:53:22 +00:00

Merge branch 'mc-1.15.x' into mc-1.16.x

This commit is contained in:
Jonathan Coates 2021-07-15 13:05:31 +01:00
commit 999a39a3e6
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
6 changed files with 8 additions and 6 deletions

View File

@ -56,9 +56,6 @@ protected void renderBg( @Nonnull MatrixStack transform, float partialTicks, int
minecraft.getTextureManager().bind( advanced ? BACKGROUND_ADVANCED : BACKGROUND_NORMAL );
blit( transform, leftPos + ComputerSidebar.WIDTH, topPos, 0, 0, TEX_WIDTH, TEX_HEIGHT );
minecraft.getTextureManager().bind( advanced ? ComputerBorderRenderer.BACKGROUND_ADVANCED : ComputerBorderRenderer.BACKGROUND_NORMAL );
ComputerSidebar.renderBackground( transform, leftPos, topPos + sidebarYOffset );
int slot = getMenu().getSelectedSlot();
if( slot >= 0 )
{
@ -70,5 +67,8 @@ protected void renderBg( @Nonnull MatrixStack transform, float partialTicks, int
0, 217, 24, 24
);
}
minecraft.getTextureManager().bind( advanced ? ComputerBorderRenderer.BACKGROUND_ADVANCED : ComputerBorderRenderer.BACKGROUND_NORMAL );
ComputerSidebar.renderBackground( transform, leftPos, topPos + sidebarYOffset );
}
}

View File

@ -126,7 +126,7 @@ private ByteBuf getCompressed()
if( !compress ) return buffer;
if( compressed != null ) return compressed;
ByteBuf compressed = Unpooled.directBuffer();
ByteBuf compressed = Unpooled.buffer();
OutputStream stream = null;
try
{

View File

@ -442,7 +442,7 @@ private synchronized void unmountDisk( IComputerAccess computer )
private void updateBlockState()
{
if( remove ) return;
if( remove || level == null ) return;
if( !diskStack.isEmpty() )
{

View File

@ -438,7 +438,7 @@ private void updateBlockState()
private void updateBlockState( boolean top, boolean bottom )
{
if( remove ) return;
if( remove || level == null ) return;
BlockState state = getBlockState();
if( state.getValue( BlockPrinter.TOP ) == top & state.getValue( BlockPrinter.BOTTOM ) == bottom ) return;

View File

@ -681,6 +681,7 @@ if http then
local nativeCheckURL = http.checkURL
http.checkURLAsync = nativeCheckURL
http.checkURL = function(_url)
expect(1, _url, "string")
local ok, err = nativeCheckURL(_url)
if not ok then return ok, err end

View File

@ -21,3 +21,4 @@ The "equip" programs let you add upgrades to a turtle without crafting.
You can change the color of a disk by crafting or right clicking it with dye.
You can print on a printed page again to get multiple colors.
Holding the Ctrl and T keys terminates the running program.
You can drag and drop files onto an open computer to upload them.