mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Fix wrong color argument for FogColor event
Fix incorrect patch for carving pumpinks
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -6,7 +6,7 @@ repositories {
|
||||
dependencies {
|
||||
implementation 'org.ow2.asm:asm:9.8'
|
||||
implementation 'org.ow2.asm:asm-tree:9.8'
|
||||
implementation 'net.minecraftforge:srgutils:0.5.10'
|
||||
implementation 'net.minecraftforge:srgutils:0.6.2'
|
||||
implementation 'net.minecraftforge:JarJarMetadata:0.3.27'
|
||||
implementation 'commons-io:commons-io:2.13.0'
|
||||
implementation 'com.google.code.gson:gson:2.10.1'
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
}
|
||||
|
||||
+
|
||||
+ var fogColor = net.minecraftforge.client.ForgeHooksClient.getFogColor(p_407993_, p_409359_, p_409862_, p_409400_, p_406105_, f, f1, f2);
|
||||
+ var fogColor = net.minecraftforge.client.ForgeHooksClient.getFogColor(p_407993_, p_409359_, p_409862_, p_409400_, p_406105_, f5, f1, f2);
|
||||
+
|
||||
+ f = fogColor.x();
|
||||
+ f5 = fogColor.x();
|
||||
+ f1 = fogColor.y();
|
||||
+ f2 = fogColor.z();
|
||||
+
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
ItemStack p_330568_, BlockState p_330263_, Level p_327756_, BlockPos p_328675_, Player p_334049_, InteractionHand p_331851_, BlockHitResult p_329008_
|
||||
) {
|
||||
- if (!p_330568_.is(Items.SHEARS)) {
|
||||
+ if (p_330568_.canPerformAction(net.minecraftforge.common.ToolActions.SHEARS_CARVE)) {
|
||||
+ if (!p_330568_.canPerformAction(net.minecraftforge.common.ToolActions.SHEARS_CARVE)) {
|
||||
return super.useItemOn(p_330568_, p_330263_, p_327756_, p_328675_, p_334049_, p_331851_, p_329008_);
|
||||
} else if (p_327756_ instanceof ServerLevel serverlevel) {
|
||||
Direction direction = p_329008_.getDirection();
|
||||
Reference in new issue
Block a user