diff --git a/build.gradle b/build.gradle index 9057302..df91d00 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { } -version = '1.19.2-1.2g' +version = '1.19.2-1.2h' group = 'com.jesz.createdieselgenerators' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = 'createdieselgenerators' diff --git a/src/main/java/com/jesz/createdieselgenerators/blocks/entity/HugeDieselEngineBlockEntity.java b/src/main/java/com/jesz/createdieselgenerators/blocks/entity/HugeDieselEngineBlockEntity.java index 2ef689c..df7c287 100644 --- a/src/main/java/com/jesz/createdieselgenerators/blocks/entity/HugeDieselEngineBlockEntity.java +++ b/src/main/java/com/jesz/createdieselgenerators/blocks/entity/HugeDieselEngineBlockEntity.java @@ -171,7 +171,7 @@ private void onDirectionChanged() { @Override public LazyOptional getCapability(Capability cap, Direction side) { - if(side == null) + if(cap == ForgeCapabilities.FLUID_HANDLER && side == null) return tank.getCapability().cast(); else if (cap == ForgeCapabilities.FLUID_HANDLER && getBlockState().getValue(BooleanProperty.create(side.toString()))) if(side.getAxis() != getBlockState().getValue(FACING).getAxis()) diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index b9c4347..ea8ba1e 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -19,7 +19,7 @@ modId="createdieselgenerators" #mandatory # The version number of the mod - there's a few well known ${} variables useable here or just hardcode it # ${file.jarVersion} will substitute the value of the Implementation-Version as read from the mod's JAR file metadata # see the associated build.gradle script for how to populate this completely automatically during a build -version="1.19.2-1.2g" #mandatory +version="1.19.2-1.2h" #mandatory # A display name for the mod displayName="Create Diesel Generators" #m # A URL to query for updates for this mod. See the JSON update specification https://mcforge.readthedocs.io/en/latest/gettingstarted/autoupdate/