Skip to content

Commit c0fd3d0

Browse files
committed
update some code
1 parent 8987a6d commit c0fd3d0

File tree

6 files changed

+19
-9
lines changed

6 files changed

+19
-9
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies {
4141
shadowImplementation "org.apache.httpcomponents:httpclient-cache:4.5.14"
4242
shadowImplementation "org.sejda.imageio:webp-imageio:0.1.6"
4343

44-
modLocalRuntime "maven.modrinth:sodium:oZOSEhyy" //1.21.1
44+
modLocalRuntime "maven.modrinth:sodium:iPRNybGo" //1.21.4
4545

4646
compileOnly "com.github.spotbugs:spotbugs-annotations:4.8.5"
4747
}

gradle.properties

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
org.gradle.jvmargs=-Xmx2G
22
org.gradle.parallel=true
33

4-
minecraft_version=1.21.1
5-
yarn_mappings=1.21.1+build.3
6-
loader_version=0.16.2
4+
minecraft_version=1.21.4
5+
yarn_mappings=1.21.4+build.1
6+
loader_version=0.16.9
77

88
mod_version=1.0.3-Enhancement-1
99
maven_group=org.teacon
1010

11-
fabric_version=0.102.1+1.21.1
11+
fabric_version=0.111.0+1.21.4
1212

13-
mod_menu_version=11.0.1
13+
mod_menu_version=13.0.0-beta.1
14+
15+
systemProp.http.proxyHost=localhost
16+
systemProp.http.proxyPort=8890
17+
systemProp.https.proxyHost=localhost
18+
systemProp.https.proxyPort=8890
19+
systemProp.socksProxyHost=localhost
20+
systemProp.socksProxyPort=8889

src/main/java/org/teacon/slides/projector/ProjectorBlock.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import net.minecraft.world.level.block.state.BlockState;
2020
import net.minecraft.world.level.block.state.StateDefinition;
2121
import net.minecraft.world.level.block.state.properties.EnumProperty;
22+
import net.minecraft.world.level.redstone.Orientation;
2223
import net.minecraft.world.phys.BlockHitResult;
2324
import net.minecraft.world.phys.shapes.CollisionContext;
2425
import net.minecraft.world.phys.shapes.VoxelShape;
@@ -73,7 +74,7 @@ public BlockState getStateForPlacement(BlockPlaceContext blockPlaceContext) {
7374
}
7475

7576
@Override
76-
public void neighborChanged(BlockState blockState, Level level, BlockPos blockPos, Block block, BlockPos blockPos2, boolean bl) {
77+
public void neighborChanged(BlockState blockState, Level level, BlockPos blockPos, Block block, Orientation orientation, boolean bl) {
7778
boolean powered = level.hasNeighborSignal(blockPos);
7879
if (powered != blockState.getValue(POWERED)) {
7980
level.setBlock(blockPos, blockState.setValue(POWERED, powered), Block.UPDATE_ALL);

src/main/java/org/teacon/slides/projector/ProjectorBlockEntity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public final class ProjectorBlockEntity extends BlockEntity implements ExtendedS
2929
private ProjectorBlockEntityData projectorBlockEntityData;
3030

3131
public static BlockEntityType<ProjectorBlockEntity> create() {
32-
return new BlockEntityType<>(ProjectorBlockEntity::new, Set.of(Slideshow.PROJECTOR), DSL.remainderType());
32+
return new BlockEntityType<>(ProjectorBlockEntity::new, Set.of(Slideshow.PROJECTOR));
3333
}
3434

3535
private ProjectorBlockEntity(BlockPos blockPos, BlockState blockState) {

src/main/resources/fabric.mod.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
],
3232
"depends": {
3333
"fabricloader": "*",
34-
"minecraft": ["1.21.1"],
34+
"minecraft": ["1.21.4"],
3535
"java": ">=21",
3636
"fabric-api": "*"
3737
}

src/main/resources/slide.accesswidener

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ accessible method net/minecraft/client/renderer/RenderType$CompositeRenderType <
44
accessible field net/minecraft/client/renderer/RenderStateShard setupState Ljava/lang/Runnable;
55
mutable field net/minecraft/client/renderer/RenderStateShard setupState Ljava/lang/Runnable;
66
accessible field com/mojang/blaze3d/platform/NativeImage pixels J
7+
accessible method net/minecraft/world/level/block/entity/BlockEntityType <init> (Lnet/minecraft/world/level/block/entity/BlockEntityType$BlockEntitySupplier;Ljava/util/Set;)V
8+
accessible class net/minecraft/world/level/block/entity/BlockEntityType$BlockEntitySupplier

0 commit comments

Comments
 (0)