Skip to content

Commit

Permalink
v1.12-0.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
delvr committed Apr 29, 2019
1 parent 3071212 commit ceb0db1
Show file tree
Hide file tree
Showing 16 changed files with 55 additions and 483 deletions.
27 changes: 22 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
/.gradle/
/build/
/libs/
/out/
/run/
*
# Ignore everything except entries with "!"

!/.idea/
/.idea/*
!/.idea/codeStyles/
!/.idea/dictionaries/
!/.idea/inspectionProfiles/
!/.idea/runConfigurations/
!/.idea/scopes/
!/.idea/gradle.xml
!/.idea/vcs.xml

!/gradle/

!/src/
/src/main/resources/mcmod.info

!/.gitignore
!/*.gradle
/.gradle/
!/*.md
!/gradle*
7 changes: 0 additions & 7 deletions .idea/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

28 changes: 0 additions & 28 deletions .idea/codeStyleSettings.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/highlighting.xml

This file was deleted.

426 changes: 0 additions & 426 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

3 changes: 1 addition & 2 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ buildscript {
dependencies {
classpath "net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT"
classpath "co.riiid:gradle-github-plugin:0.4.2"
classpath "gradle.plugin.com.matthewprenger:CurseGradle:1.0.10"
classpath "gradle.plugin.com.matthewprenger:CurseGradle:1.1.2"
}
}

apply from: zipTree(fileTree("libs"){include "Farseek-*-deobf.jar"}.singleFile).matching{include "common.gradle"}.singleFile

dependencies {
compileOnly "2566/229:BetterWithMods:1.12-2.1.22", "2559/547:ImmersiveEngineering:0.12-82"
compileOnly "2566/229:BetterWithMods:1.12-2.1.22", "immersive-engineering:ImmersiveEngineering:0.12:89"
}
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
- Fixed [streams not generating in worlds with custom sea levels](https://github.com/delvr/Streams/issues/58).
- Fixed river blocks not being rendered by shaders in recent versions of Forge/OptiFine.
- Fixed river blocks not being rendered by [BSL shaders](https://bitslablab.wixsite.com/main/bsl-shaders) (this works with 7.0 and 7.1.01, but not with earlier versions of 7.1).
- Fixed river blocks ignoring biome-specific water colors when _not_ using OptiFine.
12 changes: 7 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
modVersion=0.4.4
modVersion=0.4.5
modDependencies=farseek@[2,3)
modDescription=This mod introduces real flowing rivers, with a true current, to your Minecraft worlds. Compatible with many terrain generators.
modUrl=http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2346379-streams-real-flowing-rivers
modUrl=https://minecraft.curseforge.com/projects/streams
modAuthors=delvr

gradleWrapperVersion=4.7
forgeRevision=2443
mcpMappings=snapshot_20180501
gradleWrapperVersion=4.9
forgeRevision=1.12-14.21.1.2443
mcpMappings=stable_39

curseForgeId=229769
curseForgeReleaseType=beta

org.gradle.jvmargs=-Xmx3G
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-bin.zip
1 change: 1 addition & 0 deletions src/main/resources/META-INF/farseek_cm.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ streams.tileentity.package betterwithmods.common.blocks.mechanical.tile.TileEnt
streams.tileentity.package betterwithmods.common.blocks.mechanical.tile.TileAxleGenerator calculatePower calculatePower ()V
streams.entity.item.package net.minecraft.entity.item.EntityBoat getUnderwaterStatus func_184444_v ()Lnet/minecraft/entity/item/EntityBoat$Status;
streams.client.package net.minecraftforge.client.model.ModelLoader onRegisterAllBlocks onRegisterAllBlocks (Lnet/minecraft/client/renderer/BlockModelShapes;)V
streams.client.package net.minecraft.client.renderer.color.BlockColors init func_186723_a ()Lnet/minecraft/client/renderer/color/BlockColors;
3 changes: 2 additions & 1 deletion src/main/resources/assets/streams/shaders/block.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
block.8=streams:river/tile.water/-2/-2 streams:river/tile.water/-2/-1 streams:river/tile.water/-2/0 streams:river/tile.water/-2/1 streams:river/tile.water/-2/2 streams:river/tile.water/-1/-2 streams:river/tile.water/-1/2 streams:river/tile.water/0/-2 streams:river/tile.water/0/0 streams:river/tile.water/0/2 streams:river/tile.water/1/-2 streams:river/tile.water/1/2 streams:river/tile.water/2/-2 streams:river/tile.water/2/-1 streams:river/tile.water/2/0 streams:river/tile.water/2/1 streams:river/tile.water/2/2
block.8=streams:river/water/-2/-2 streams:river/water/-2/-1 streams:river/water/-2/0 streams:river/water/-2/1 streams:river/water/-2/2 streams:river/water/-1/-2 streams:river/water/-1/2 streams:river/water/0/-2 streams:river/water/0/0 streams:river/water/0/2 streams:river/water/1/-2 streams:river/water/1/2 streams:river/water/2/-2 streams:river/water/2/-1 streams:river/water/2/0 streams:river/water/2/1 streams:river/water/2/2 streams:river/tile.water/-2/-2 streams:river/tile.water/-2/-1 streams:river/tile.water/-2/0 streams:river/tile.water/-2/1 streams:river/tile.water/-2/2 streams:river/tile.water/-1/-2 streams:river/tile.water/-1/2 streams:river/tile.water/0/-2 streams:river/tile.water/0/0 streams:river/tile.water/0/2 streams:river/tile.water/1/-2 streams:river/tile.water/1/2 streams:river/tile.water/2/-2 streams:river/tile.water/2/-1 streams:river/tile.water/2/0 streams:river/tile.water/2/1 streams:river/tile.water/2/2
block.13000=streams:river/water/-2/-2 streams:river/water/-2/-1 streams:river/water/-2/0 streams:river/water/-2/1 streams:river/water/-2/2 streams:river/water/-1/-2 streams:river/water/-1/2 streams:river/water/0/-2 streams:river/water/0/0 streams:river/water/0/2 streams:river/water/1/-2 streams:river/water/1/2 streams:river/water/2/-2 streams:river/water/2/-1 streams:river/water/2/0 streams:river/water/2/1 streams:river/water/2/2 streams:river/tile.water/-2/-2 streams:river/tile.water/-2/-1 streams:river/tile.water/-2/0 streams:river/tile.water/-2/1 streams:river/tile.water/-2/2 streams:river/tile.water/-1/-2 streams:river/tile.water/-1/2 streams:river/tile.water/0/-2 streams:river/tile.water/0/0 streams:river/tile.water/0/2 streams:river/tile.water/1/-2 streams:river/tile.water/1/2 streams:river/tile.water/2/-2 streams:river/tile.water/2/-1 streams:river/tile.water/2/0 streams:river/tile.water/2/1 streams:river/tile.water/2/2
2 changes: 1 addition & 1 deletion src/main/scala/streams/block/BlockRiver.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class BlockRiver(liquid: MaterialLiquid, val dxFlow: Int, val dzFlow: Int) exten
cloneObject(classOf[BlockLiquid], getStaticBlock(liquid), this, f => f.getType == classOf[IRegistryDelegate[Block]] || f.getType == classOf[ResourceLocation])
blockState = createBlockState
setDefaultState(blockState.getBaseState)
ForgeRegistries.BLOCKS.register(setRegistryName("streams", s"river/$getUnlocalizedName/$dxFlow/$dzFlow"))
ForgeRegistries.BLOCKS.register(setRegistryName("streams", s"river/${Block.REGISTRY.getNameForObject(getStaticBlock(liquid)).getPath}/$dxFlow/$dzFlow"))

override def onBlockAdded(w: World, pos: BlockPos, state: IBlockState) {
if(populating)
Expand Down
15 changes: 15 additions & 0 deletions src/main/scala/streams/client/package.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
package streams

import net.minecraft.block.Block
import net.minecraft.block.state.IBlockState
import net.minecraft.client.renderer.BlockModelShapes
import net.minecraft.client.renderer.color._
import net.minecraft.util.math.BlockPos
import net.minecraft.world.IBlockAccess
import net.minecraft.world.biome.BiomeColorHelper
import net.minecraftforge.client.model.ModelLoader
import streams.block.FixedFlowBlock._

Expand All @@ -11,4 +16,14 @@ package object client {
ModelLoader.onRegisterAllBlocks(shapes)
shapes.registerBuiltInBlocks(FixedFlowBlocks.values.map(_.asInstanceOf[Block]).toSeq:_*)
}

def init(): BlockColors = {
val colors = BlockColors.init
val handler = new IBlockColor {
override def colorMultiplier(state: IBlockState, worldIn: IBlockAccess, pos: BlockPos, tintIndex: Int): Int =
if(worldIn != null && pos != null) BiomeColorHelper.getWaterColorAtPos(worldIn, pos) else -1
}
FixedFlowBlocks.values.foreach(colors.registerBlockColorHandler(handler, _))
colors
}
}

0 comments on commit ceb0db1

Please sign in to comment.