generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Still haven't fixed storage presets
- Loading branch information
Showing
17 changed files
with
87 additions
and
89 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
14 changes: 0 additions & 14 deletions
14
...rg/samo_lego/clientstorage/fabric_client/mixin/accessor/ACreativeModeInventoryScreen.java
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
...tstorage/fabric_client/mixin/network/MClientCommonPacketListenerImpl_BrandRecognizer.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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.samo_lego.clientstorage.fabric_client.mixin.network; | ||
|
||
import net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl; | ||
import net.minecraft.network.protocol.common.ClientboundCustomPayloadPacket; | ||
import org.samo_lego.clientstorage.fabric_client.network.PacketLimiter; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(ClientCommonPacketListenerImpl.class) | ||
public class MClientCommonPacketListenerImpl_BrandRecognizer { | ||
|
||
/** | ||
* Tries to recognize server type from server brand packet. | ||
* | ||
* @param packet | ||
* @param ci | ||
*/ | ||
@Inject(method = "handleCustomPayload", | ||
at = @At(value = "INVOKE", | ||
target = "Lnet/minecraft/client/telemetry/WorldSessionTelemetryManager;onServerBrandReceived(Ljava/lang/String;)V", | ||
shift = At.Shift.BEFORE)) | ||
private void onServerBrand(ClientboundCustomPayloadPacket packet, CallbackInfo ci) { | ||
PacketLimiter.tryRecognizeServer(); | ||
} | ||
} |
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
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,2 +1,4 @@ | ||
accessWidener v1 named | ||
extendable class net/minecraft/world/item/ItemStack | ||
extendable class net/minecraft/world/item/ItemStack | ||
accessible field net/minecraft/client/gui/screens/inventory/CreativeModeInventoryScreen SCROLLER_SPRITE Lnet/minecraft/resources/ResourceLocation; | ||
accessible field net/minecraft/client/gui/screens/inventory/CreativeModeInventoryScreen SCROLLER_DISABLED_SPRITE Lnet/minecraft/resources/ResourceLocation; |
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.