File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
src/main/java/com/circulation/random_complement/mixin/botania/spark Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 1212import org .spongepowered .asm .mixin .injection .At ;
1313import org .spongepowered .asm .mixin .injection .Inject ;
1414import org .spongepowered .asm .mixin .injection .callback .CallbackInfo ;
15+ import vazkii .botania .api .internal .VanillaPacketDispatcher ;
1516import vazkii .botania .api .mana .IManaPool ;
1617import vazkii .botania .api .mana .IManaReceiver ;
1718import vazkii .botania .api .mana .spark .ISparkAttachable ;
@@ -40,6 +41,11 @@ public void onUpdate(CallbackInfo ci) {
4041 }
4142 }
4243
44+ @ Inject (method = "recieveMana" , at = @ At ("TAIL" ), remap = false )
45+ public void recieveMana (int mana , CallbackInfo ci ) {
46+ VanillaPacketDispatcher .dispatchTEToNearbyPlayers (this );
47+ }
48+
4349 @ Intrinsic
4450 public boolean canAttachSpark (ItemStack var1 ) {
4551 return RCConfig .Botania .BrewerySparkSupport ;
Original file line number Diff line number Diff line change 1212import org .spongepowered .asm .mixin .injection .At ;
1313import org .spongepowered .asm .mixin .injection .Inject ;
1414import org .spongepowered .asm .mixin .injection .callback .CallbackInfo ;
15+ import vazkii .botania .api .internal .VanillaPacketDispatcher ;
1516import vazkii .botania .api .mana .IManaPool ;
1617import vazkii .botania .api .mana .IManaReceiver ;
1718import vazkii .botania .api .mana .spark .ISparkAttachable ;
@@ -45,6 +46,11 @@ public void onUpdate(CallbackInfo ci) {
4546 }
4647 }
4748
49+ @ Inject (method = "recieveMana" , at = @ At ("TAIL" ), remap = false )
50+ public void recieveMana (int mana , CallbackInfo ci ) {
51+ VanillaPacketDispatcher .dispatchTEToNearbyPlayers (this );
52+ }
53+
4854 @ Intrinsic
4955 public boolean canAttachSpark (ItemStack var1 ) {
5056 return RCConfig .Botania .RuneAltarSparkSupport ;
You can’t perform that action at this time.
0 commit comments