Skip to content

Commit

Permalink
The Minecraft dev ecosystem is great and has no flaws whatsoever
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEpicBlock committed Apr 24, 2023
1 parent 58cea49 commit 7a6f348
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.12-SNAPSHOT'
id 'fabric-loom' version '1.1-SNAPSHOT'
id 'maven-publish'
id 'io.github.juuxel.loom-quiltflower' version '1.7.1'
id 'org.ajoberstar.grgit' version '4.1.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
* This Mixin makes sure that the blocks are polyd before they get sent to the client.
*/
@Mixin(value = {ArrayPalette.class, BiMapPalette.class, SingularPalette.class, LithiumHashPalette.class})
public abstract class PaletteBlockPolyImplementation<T> {
public abstract class PaletteBlockPolyImplementation {

@Redirect(method = {"writePacket", "getPacketSize"}, at = @At(value = "INVOKE", target = "Lnet/minecraft/util/collection/IndexedIterable;getRawId(Ljava/lang/Object;)I"))
public int GetIdRedirect(IndexedIterable instance, T object) {
public <T> int GetIdRedirect(IndexedIterable<T> instance, T object) {
if (object instanceof BlockState) {
var player = ChunkPacketStaticHack.player.get();

Expand Down

0 comments on commit 7a6f348

Please sign in to comment.