Compare commits

...
5 Commits
15 changed files with 47 additions and 28 deletions

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
name: Optimize images
on:
pull_request:
branches: [ master, main, release/** ]
paths:
- "**/*.png"
push:
branches: [ master, main, release/** ]
paths:
- "**/*.png"
jobs:
optimize-images:
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/optimize-images.yml@master
secrets: inherit
+3 -3
View File
@@ -1,9 +1,9 @@
// Add your dependencies here // Add your dependencies here
dependencies { dependencies {
implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.7:dev") implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.12:dev")
compileOnly("com.github.GTNewHorizons:Angelica:1.0.0-beta62:dev") compileOnly("com.github.GTNewHorizons:Angelica:2.1.19:dev")
devOnlyNonPublishable("com.github.GTNewHorizons:NotEnoughItems:2.8.20-GTNH:dev") { devOnlyNonPublishable("com.github.GTNewHorizons:NotEnoughItems:2.8.93-GTNH:dev") {
exclude group: 'com.github.GTNewHorizons', module: 'CodeChickenCore' exclude group: 'com.github.GTNewHorizons', module: 'CodeChickenCore'
} }
} }
+8 -8
View File
@@ -1,12 +1,12 @@
#This file is generated by updateDaemonJvm #This file is generated by updateDaemonJvm
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/c5ee947fbfb70bc347d8d531e3a578c4/redirect toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/fa1e318c287360478e3c83a9a3ef1007/redirect
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/5ee463876563a46fff651cce1bc53a4c/redirect toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/fa1e318c287360478e3c83a9a3ef1007/redirect
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/d4fd992c9557644e637ebe98263e0ae7/redirect toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/c2dd35c9d0aaf0ba6ad0791320f99dfc/redirect
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/faa12903720d410b387cc69ccafb1a74/redirect toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/e5810bd7fd1f8a586644409d395a7e55/redirect
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/fa1e318c287360478e3c83a9a3ef1007/redirect
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/a4c09dd2e2d7079373d30e524bbc2829/redirect toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/7b3c4877c0749019e6805bb61e421497/redirect
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/b96cb7670c095245220e7d01d5927b58/redirect toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/8e1d9ee5d0f13e442218f6884a306da1/redirect
toolchainVersion=25 toolchainVersion=25
Binary file not shown.
Vendored
+1 -1
View File
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop. # Darwin, MinGW, and NonStop.
# #
# (3) This script is generated from the Groovy template # (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # https://github.com/gradle/gradle/blob/b631911858264c0b6e4d6603d677ff5218766cee/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project. # within the Gradle project.
# #
# You can find Gradle at https://github.com/gradle/gradle/. # You can find Gradle at https://github.com/gradle/gradle/.
+1 -1
View File
@@ -17,5 +17,5 @@ pluginManagement {
} }
plugins { plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.23' id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.24'
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 531 B

After

Width:  |  Height:  |  Size: 500 B

@@ -18,10 +18,17 @@ object ControlKeyModifer {
implicit def playerControlValue(p: EntityPlayer) = new ControlKeyValue(p) implicit def playerControlValue(p: EntityPlayer) = new ControlKeyValue(p)
class ControlKeyValue(p: EntityPlayer) { class ControlKeyValue(p: EntityPlayer) {
def isControlDown = map(p) def isControlDown = {
if (p.worldObj.isRemote) {
isClientPressing
} else {
map(p)
}
}
} }
val map = HashMap[EntityPlayer, Boolean]().withDefaultValue(false) val map = HashMap[EntityPlayer, Boolean]().withDefaultValue(false)
var isClientPressing = false;
/** Implicit static for Java users. /** Implicit static for Java users.
*/ */
@@ -38,7 +45,6 @@ object ControlKeyHandler
) { ) {
import ControlKeyModifer._ import ControlKeyModifer._
var wasPressed = false var wasPressed = false
var oldPlayer: EntityPlayer = null
@SubscribeEvent @SubscribeEvent
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
@@ -47,19 +53,11 @@ object ControlKeyHandler
if (pressed != wasPressed) { if (pressed != wasPressed) {
wasPressed = pressed wasPressed = pressed
if (Minecraft.getMinecraft.getNetHandler != null) { if (Minecraft.getMinecraft.getNetHandler != null) {
map.put(Minecraft.getMinecraft.thePlayer, pressed) isClientPressing = pressed
val packet = new PacketCustom(MultipartCPH.channel, 1) val packet = new PacketCustom(MultipartCPH.channel, 1)
packet.writeBoolean(pressed) packet.writeBoolean(pressed)
packet.sendToServer() packet.sendToServer()
} }
} }
if (oldPlayer != null) {
if (oldPlayer != Minecraft.getMinecraft.thePlayer) {
map.remove(oldPlayer)
oldPlayer = Minecraft.getMinecraft.thePlayer
}
} else {
oldPlayer = Minecraft.getMinecraft.thePlayer
}
} }
} }
@@ -85,7 +85,9 @@ object MultipartRenderer
val state = CCRenderState.instance val state = CCRenderState.instance
state.resetInstance() state.resetInstance()
state.lightMatrix.locate(world, x, y, z) state.lightMatrix.locate(world, x, y, z)
return tmpart.renderStatic(new Vector3(x, y, z), pass) val b = tmpart.renderStatic(new Vector3(x, y, z), pass)
state.lightMatrix.access = null
b
} }
override def renderInventoryBlock( override def renderInventoryBlock(
@@ -252,7 +252,9 @@ abstract class TMultiPart {
* Incremental changes should be sent rather than the whole description * Incremental changes should be sent rather than the whole description
* packet if possible. * packet if possible.
*/ */
def sendDescUpdate() = writeDesc(getWriteStream) def sendDescUpdate() {
if (tile != null) writeDesc(getWriteStream)
}
/** Called when a part is added or removed from this block space. The part /** Called when a part is added or removed from this block space. The part
* parameter may be null if several things have changed. * parameter may be null if several things have changed.
@@ -9,8 +9,7 @@ import cpw.mods.fml.common.event.{
FMLServerStoppedEvent FMLServerStoppedEvent
} }
import cpw.mods.fml.common.Mod.EventHandler import cpw.mods.fml.common.Mod.EventHandler
import codechicken.multipart.MultiPartRegistry import codechicken.multipart.{ControlKeyModifer, MultiPartRegistry, Tags}
import codechicken.multipart.Tags
@Mod( @Mod(
modid = "ForgeMultipart", modid = "ForgeMultipart",
@@ -46,5 +45,6 @@ object MultipartMod {
@EventHandler @EventHandler
def serverStopped(event: FMLServerStoppedEvent) { def serverStopped(event: FMLServerStoppedEvent) {
MultipartSaveLoad.loadingWorld = null; MultipartSaveLoad.loadingWorld = null;
ControlKeyModifer.map.clear();
} }
} }