-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0080414
commit f62e316
Showing
13 changed files
with
48 additions
and
50 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
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,5 +1,6 @@ | ||
#Sun May 17 17:40:47 PDT 2020 | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.1-all.zip | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME |
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
40 changes: 20 additions & 20 deletions
40
src/main/java/dev/hephaestus/fiblib/mixin/blocks/packets/BlockActionFibber.java
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,20 +1,20 @@ | ||
package dev.hephaestus.fiblib.mixin.blocks.packets; | ||
|
||
import dev.hephaestus.fiblib.FibLib; | ||
import dev.hephaestus.fiblib.Fibber; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.network.packet.s2c.play.BlockActionS2CPacket; | ||
import net.minecraft.server.network.ServerPlayerEntity; | ||
import net.minecraft.util.math.BlockPos; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
|
||
@Mixin(BlockActionS2CPacket.class) | ||
public class BlockActionFibber<T> implements Fibber { | ||
@Shadow private Block block; | ||
|
||
@Override | ||
public void fix(ServerPlayerEntity player) { | ||
this.block = FibLib.Blocks.get(block.getDefaultState(), player).getBlock(); | ||
} | ||
} | ||
//package dev.hephaestus.fiblib.mixin.blocks.packets; | ||
// | ||
//import dev.hephaestus.fiblib.FibLib; | ||
//import dev.hephaestus.fiblib.Fibber; | ||
//import net.minecraft.block.Block; | ||
//import net.minecraft.network.packet.s2c.play.BlockActionS2CPacket; | ||
//import net.minecraft.server.network.ServerPlayerEntity; | ||
//import net.minecraft.util.math.BlockPos; | ||
//import org.spongepowered.asm.mixin.Mixin; | ||
//import org.spongepowered.asm.mixin.Shadow; | ||
// | ||
//@Mixin(BlockActionS2CPacket.class) | ||
//public class BlockActionFibber<T> implements Fibber { | ||
// @Shadow private Block block; | ||
// | ||
// @Override | ||
// public void fix(ServerPlayerEntity player) { | ||
// this.block = FibLib.Blocks.get(block.getDefaultState(), player).getBlock(); | ||
// } | ||
//} |
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