Skip to content

Commit

Permalink
update some code
Browse files Browse the repository at this point in the history
  • Loading branch information
AIDA64S committed Dec 10, 2024
1 parent 8987a6d commit c0fd3d0
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dependencies {
shadowImplementation "org.apache.httpcomponents:httpclient-cache:4.5.14"
shadowImplementation "org.sejda.imageio:webp-imageio:0.1.6"

modLocalRuntime "maven.modrinth:sodium:oZOSEhyy" //1.21.1
modLocalRuntime "maven.modrinth:sodium:iPRNybGo" //1.21.4

compileOnly "com.github.spotbugs:spotbugs-annotations:4.8.5"
}
Expand Down
17 changes: 12 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
org.gradle.jvmargs=-Xmx2G
org.gradle.parallel=true

minecraft_version=1.21.1
yarn_mappings=1.21.1+build.3
loader_version=0.16.2
minecraft_version=1.21.4
yarn_mappings=1.21.4+build.1
loader_version=0.16.9

mod_version=1.0.3-Enhancement-1
maven_group=org.teacon

fabric_version=0.102.1+1.21.1
fabric_version=0.111.0+1.21.4

mod_menu_version=11.0.1
mod_menu_version=13.0.0-beta.1

systemProp.http.proxyHost=localhost
systemProp.http.proxyPort=8890
systemProp.https.proxyHost=localhost
systemProp.https.proxyPort=8890
systemProp.socksProxyHost=localhost
systemProp.socksProxyPort=8889
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.StateDefinition;
import net.minecraft.world.level.block.state.properties.EnumProperty;
import net.minecraft.world.level.redstone.Orientation;
import net.minecraft.world.phys.BlockHitResult;
import net.minecraft.world.phys.shapes.CollisionContext;
import net.minecraft.world.phys.shapes.VoxelShape;
Expand Down Expand Up @@ -73,7 +74,7 @@ public BlockState getStateForPlacement(BlockPlaceContext blockPlaceContext) {
}

@Override
public void neighborChanged(BlockState blockState, Level level, BlockPos blockPos, Block block, BlockPos blockPos2, boolean bl) {
public void neighborChanged(BlockState blockState, Level level, BlockPos blockPos, Block block, Orientation orientation, boolean bl) {
boolean powered = level.hasNeighborSignal(blockPos);
if (powered != blockState.getValue(POWERED)) {
level.setBlock(blockPos, blockState.setValue(POWERED, powered), Block.UPDATE_ALL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public final class ProjectorBlockEntity extends BlockEntity implements ExtendedS
private ProjectorBlockEntityData projectorBlockEntityData;

public static BlockEntityType<ProjectorBlockEntity> create() {
return new BlockEntityType<>(ProjectorBlockEntity::new, Set.of(Slideshow.PROJECTOR), DSL.remainderType());
return new BlockEntityType<>(ProjectorBlockEntity::new, Set.of(Slideshow.PROJECTOR));
}

private ProjectorBlockEntity(BlockPos blockPos, BlockState blockState) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
],
"depends": {
"fabricloader": "*",
"minecraft": ["1.21.1"],
"minecraft": ["1.21.4"],
"java": ">=21",
"fabric-api": "*"
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/slide.accesswidener
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ accessible method net/minecraft/client/renderer/RenderType$CompositeRenderType <
accessible field net/minecraft/client/renderer/RenderStateShard setupState Ljava/lang/Runnable;
mutable field net/minecraft/client/renderer/RenderStateShard setupState Ljava/lang/Runnable;
accessible field com/mojang/blaze3d/platform/NativeImage pixels J
accessible method net/minecraft/world/level/block/entity/BlockEntityType <init> (Lnet/minecraft/world/level/block/entity/BlockEntityType$BlockEntitySupplier;Ljava/util/Set;)V
accessible class net/minecraft/world/level/block/entity/BlockEntityType$BlockEntitySupplier

0 comments on commit c0fd3d0

Please sign in to comment.