-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from juanmuscaria/staging
Renamed bukkit package. Fine-tuned "api" jar. Added jitpack support.
- Loading branch information
Showing
399 changed files
with
2,046 additions
and
1,580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
before_install: | ||
- ./gradlew setupCrucible |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
--- ../src-base/minecraft/net/minecraft/block/BlockCocoa.java | ||
+++ ../src-work/minecraft/net/minecraft/block/BlockCocoa.java | ||
@@ -51,7 +51,8 @@ | ||
@@ -17,6 +17,7 @@ | ||
import net.minecraft.util.MathHelper; | ||
import net.minecraft.world.IBlockAccess; | ||
import net.minecraft.world.World; | ||
+import org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory; | ||
|
||
public class BlockCocoa extends BlockDirectional implements IGrowable | ||
{ | ||
@@ -51,7 +52,8 @@ | ||
if (i1 < 2) | ||
{ | ||
++i1; | ||
- p_149674_1_.setBlockMetadataWithNotify(p_149674_2_, p_149674_3_, p_149674_4_, i1 << 2 | getDirection(l), 2); | ||
+ // CraftBukkit | ||
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(p_149674_1_, p_149674_2_, p_149674_3_, p_149674_4_, this, i1 << 2 | getDirection(l)); | ||
+ CraftEventFactory.handleBlockGrowEvent(p_149674_1_, p_149674_2_, p_149674_3_, p_149674_4_, this, i1 << 2 | getDirection(l)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
patches/net/minecraft/block/BlockDaylightDetector.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
--- ../src-base/minecraft/net/minecraft/block/BlockDaylightDetector.java | ||
+++ ../src-work/minecraft/net/minecraft/block/BlockDaylightDetector.java | ||
@@ -73,6 +73,7 @@ | ||
@@ -13,6 +13,7 @@ | ||
import net.minecraft.world.EnumSkyBlock; | ||
import net.minecraft.world.IBlockAccess; | ||
import net.minecraft.world.World; | ||
+import org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory; | ||
|
||
public class BlockDaylightDetector extends BlockContainer | ||
{ | ||
@@ -73,6 +74,7 @@ | ||
|
||
if (l != i1) | ||
{ | ||
+ i1 = org.bukkit.craftbukkit.event.CraftEventFactory.callRedstoneChange(p_149957_1_, p_149957_2_, p_149957_3_, p_149957_4_, l, i1).getNewCurrent(); // CraftBukkit - Call BlockRedstoneEvent | ||
+ i1 = CraftEventFactory.callRedstoneChange(p_149957_1_, p_149957_2_, p_149957_3_, p_149957_4_, l, i1).getNewCurrent(); // CraftBukkit - Call BlockRedstoneEvent | ||
p_149957_1_.setBlockMetadataWithNotify(p_149957_2_, p_149957_3_, p_149957_4_, i1, 3); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.