Skip to content

Commit a3021c4

Browse files
committed
Merge branch 'mc-1.14.x' into mc-1.15.x
2 parents 3d7a816 + b7c61f9 commit a3021c4

File tree

17 files changed

+25
-33
lines changed

17 files changed

+25
-33
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ minecraft {
4848

4949
server {
5050
workingDirectory project.file("run/server-${mc_version}")
51-
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
51+
property 'forge.logging.markers', 'REGISTRIES,REGISTRYDUMP'
5252
property 'forge.logging.console.level', 'debug'
5353

5454
mods {
@@ -60,7 +60,7 @@ minecraft {
6060

6161
data {
6262
workingDirectory project.file('run')
63-
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
63+
property 'forge.logging.markers', 'REGISTRIES,REGISTRYDUMP'
6464
property 'forge.logging.console.level', 'debug'
6565

6666
args '--mod', 'computercraft', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Mod properties
2-
mod_version=1.87.0
2+
mod_version=1.87.1
33

44
# Minecraft properties (update mods.toml when changing)
55
mc_version=1.15.2

src/generated/resources/data/computercraft/loot_tables/computer_advanced.json renamed to src/generated/resources/data/computercraft/loot_tables/blocks/computer_advanced.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generated/resources/data/computercraft/loot_tables/computer_normal.json renamed to src/generated/resources/data/computercraft/loot_tables/blocks/computer_normal.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generated/resources/data/computercraft/loot_tables/disk_drive.json renamed to src/generated/resources/data/computercraft/loot_tables/blocks/disk_drive.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generated/resources/data/computercraft/loot_tables/monitor_advanced.json renamed to src/generated/resources/data/computercraft/loot_tables/blocks/monitor_advanced.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generated/resources/data/computercraft/loot_tables/monitor_normal.json renamed to src/generated/resources/data/computercraft/loot_tables/blocks/monitor_normal.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generated/resources/data/computercraft/loot_tables/printer.json renamed to src/generated/resources/data/computercraft/loot_tables/blocks/printer.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generated/resources/data/computercraft/loot_tables/speaker.json renamed to src/generated/resources/data/computercraft/loot_tables/blocks/speaker.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generated/resources/data/computercraft/loot_tables/turtle_advanced.json renamed to src/generated/resources/data/computercraft/loot_tables/blocks/turtle_advanced.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generated/resources/data/computercraft/loot_tables/turtle_normal.json renamed to src/generated/resources/data/computercraft/loot_tables/blocks/turtle_normal.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generated/resources/data/computercraft/loot_tables/wired_modem_full.json renamed to src/generated/resources/data/computercraft/loot_tables/blocks/wired_modem_full.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generated/resources/data/computercraft/loot_tables/wireless_modem_advanced.json renamed to src/generated/resources/data/computercraft/loot_tables/blocks/wireless_modem_advanced.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generated/resources/data/computercraft/loot_tables/wireless_modem_normal.json renamed to src/generated/resources/data/computercraft/loot_tables/blocks/wireless_modem_normal.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/dan200/computercraft/data/LootTables.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ protected void registerLoot( BiConsumer<ResourceLocation, LootTable> add )
4545

4646
private static void basicDrop( BiConsumer<ResourceLocation, LootTable> add, Block block )
4747
{
48-
add.accept( block.getRegistryName(), LootTable
48+
add.accept( block.getLootTable(), LootTable
4949
.builder()
50+
.setParameterSet( LootParameterSets.BLOCK )
5051
.addLootPool( LootPool.builder()
5152
.name( "main" )
5253
.rolls( ConstantRange.of( 1 ) )
@@ -57,8 +58,9 @@ private static void basicDrop( BiConsumer<ResourceLocation, LootTable> add, Bloc
5758

5859
private static void computerDrop( BiConsumer<ResourceLocation, LootTable> add, Block block )
5960
{
60-
add.accept( block.getRegistryName(), LootTable
61+
add.accept( block.getLootTable(), LootTable
6162
.builder()
63+
.setParameterSet( LootParameterSets.BLOCK )
6264
.addLootPool( LootPool.builder()
6365
.name( "main" )
6466
.rolls( ConstantRange.of( 1 ) )

src/main/resources/data/computercraft/lua/rom/help/changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# New features in CC: Tweaked 1.87.1
2+
3+
* Fix blocks not dropping items in survival.
4+
15
# New features in CC: Tweaked 1.87.0
26

37
* Add documentation to many Lua functions. This is published online at https://tweaked.cc/.
Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,5 @@
1-
New features in CC: Tweaked 1.87.0
1+
New features in CC: Tweaked 1.87.1
22

3-
* Add documentation to many Lua functions. This is published online at https://tweaked.cc/.
4-
* Replace to pretty-printer in the Lua REPL. It now supports displaying functions and recursive tables. This printer is may be used within your own code through the `cc.pretty` module.
5-
* Add `fs.getCapacity`. A complement to `fs.getFreeSpace`, this returns the capacity of the supplied drive.
6-
* Add `fs.getAttributes`. This provides file size and type, as well as creation and modification time.
7-
* Update Cobalt version. This backports several features from Lua 5.2 and 5.3:
8-
- The `__len` metamethod may now be used by tables.
9-
- Add `\z`, hexadecimal (`\x00`) and unicode (`\u0000`) string escape codes.
10-
- Add `utf8` lib.
11-
- Mirror Lua's behaviour of tail calls more closely. Native functions are no longer tail called, and tail calls are displayed in the stack trace.
12-
- `table.unpack` now uses `__len` and `__index` metamethods.
13-
- Parser errors now include the token where the error occured.
14-
* Add `textutils.unserializeJSON`. This can be used to decode standard JSON and stringified-NBT.
15-
* The `settings` API now allows "defining" settings. This allows settings to specify a default value and description.
16-
* Enable the motd on non-pocket computers.
17-
* Allow using the menu with the mouse in edit and paint (JakobDev).
18-
* Add Danish and Korean translations (ChristianLW, mindy15963)
19-
* Fire `mouse_up` events in the monitor program.
20-
* Allow specifying a timeout to `websocket.receive`.
21-
* Increase the maximimum limit for websocket messages.
22-
* Optimise capacity checking of computer/disk folders.
23-
24-
And several bug fixes:
25-
* Fix turtle texture being incorrectly oriented (magiczocker10).
26-
* Prevent copying folders into themselves.
27-
* Normalise file paths within shell.setDir (JakobDev)
28-
* Fix turtles treating waterlogged blocks as water.
29-
* Register an entity renderer for the turtle's fake player.
3+
* Fix blocks not dropping items in survival.
304

315
Type "help changelog" to see the full version history.

0 commit comments

Comments
 (0)